From 4d1ff4344009a2738bf75133dd71f65e1c82b9d9 Mon Sep 17 00:00:00 2001 From: Guy Badman <61918526+badguy99@users.noreply.github.com> Date: Wed, 20 May 2020 20:36:51 +0100 Subject: [PATCH] Change ClimateDevice to ClimateEntity to deal with deprecation warning Fixes: #124 --- custom_components/badnest/climate.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/badnest/climate.py b/custom_components/badnest/climate.py index e21f22d..b30d922 100644 --- a/custom_components/badnest/climate.py +++ b/custom_components/badnest/climate.py @@ -2,7 +2,7 @@ from datetime import datetime import logging -from homeassistant.components.climate import ClimateDevice +from homeassistant.components.climate import ClimateEntity from homeassistant.components.climate.const import ( ATTR_TARGET_TEMP_HIGH, ATTR_TARGET_TEMP_LOW, @@ -78,8 +78,8 @@ async def async_setup_platform(hass, async_add_entities(thermostats) -class NestClimate(ClimateDevice): - """Representation of a Nest climate device.""" +class NestClimate(ClimateEntity): + """Representation of a Nest climate entity.""" def __init__(self, device_id, api): """Initialize the thermostat."""