Rename ClimateDevice to ClimateEntity (#34591)
This commit is contained in:
1 parent
b30d117e7d
commit
29bc93ea98
68 files changed
+177
-150
No files matched your search
@@ -5,7 +5,7 @@ from oemthermostat import Thermostat
|
||||
import requests
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.climate import PLATFORM_SCHEMA, ClimateDevice
|
||||
from homeassistant.components.climate import PLATFORM_SCHEMA, ClimateEntity
|
||||
from homeassistant.components.climate.const import (
|
||||
CURRENT_HVAC_HEAT,
|
||||
CURRENT_HVAC_IDLE,
|
||||
@@ -59,7 +59,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
add_entities((ThermostatDevice(therm, name),), True)
|
||||
|
||||
|
||||
class ThermostatDevice(ClimateDevice):
|
||||
class ThermostatDevice(ClimateEntity):
|
||||
"""Interface class for the oemthermostat module."""
|
||||
|
||||
def __init__(self, thermostat, name):
|
||||
|
||||
Reference in new issue
Block a user