mirror of
https://github.com/USA-RedDragon/badnest.git
synced 2025-02-12 08:27:49 +00:00
Change ClimateDevice to ClimateEntity to deal with deprecation warning
Fixes: #124
This commit is contained in:
parent
7ab48d968e
commit
4d1ff43440
@ -2,7 +2,7 @@
|
|||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from homeassistant.components.climate import ClimateDevice
|
from homeassistant.components.climate import ClimateEntity
|
||||||
from homeassistant.components.climate.const import (
|
from homeassistant.components.climate.const import (
|
||||||
ATTR_TARGET_TEMP_HIGH,
|
ATTR_TARGET_TEMP_HIGH,
|
||||||
ATTR_TARGET_TEMP_LOW,
|
ATTR_TARGET_TEMP_LOW,
|
||||||
@ -78,8 +78,8 @@ async def async_setup_platform(hass,
|
|||||||
async_add_entities(thermostats)
|
async_add_entities(thermostats)
|
||||||
|
|
||||||
|
|
||||||
class NestClimate(ClimateDevice):
|
class NestClimate(ClimateEntity):
|
||||||
"""Representation of a Nest climate device."""
|
"""Representation of a Nest climate entity."""
|
||||||
|
|
||||||
def __init__(self, device_id, api):
|
def __init__(self, device_id, api):
|
||||||
"""Initialize the thermostat."""
|
"""Initialize the thermostat."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user