mirror of
https://github.com/USA-RedDragon/badnest.git
synced 2025-01-31 06:20:26 +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
|
||||
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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user