1
0
mirror of https://github.com/USA-RedDragon/badnest.git synced 2025-01-31 09:00:27 +00:00

Change ClimateDevice to ClimateEntity to deal with deprecation warning

Fixes: #124
This commit is contained in:
Guy Badman 2020-05-20 20:36:51 +01:00
parent 7ab48d968e
commit 4d1ff43440
No known key found for this signature in database
GPG Key ID: 0259B610971EA10F

View File

@ -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."""