mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 00:07:10 +00:00
Use climate enums in flexit (#70654)
This commit is contained in:
parent
587505c85b
commit
8db4994345
@ -5,12 +5,8 @@ import logging
|
|||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.climate import (
|
from homeassistant.components.climate import PLATFORM_SCHEMA, ClimateEntity
|
||||||
PLATFORM_SCHEMA,
|
from homeassistant.components.climate.const import ClimateEntityFeature, HVACMode
|
||||||
ClimateEntity,
|
|
||||||
ClimateEntityFeature,
|
|
||||||
)
|
|
||||||
from homeassistant.components.climate.const import HVAC_MODE_COOL
|
|
||||||
from homeassistant.components.modbus import get_hub
|
from homeassistant.components.modbus import get_hub
|
||||||
from homeassistant.components.modbus.const import (
|
from homeassistant.components.modbus.const import (
|
||||||
CALL_TYPE_REGISTER_HOLDING,
|
CALL_TYPE_REGISTER_HOLDING,
|
||||||
@ -187,7 +183,7 @@ class Flexit(ClimateEntity):
|
|||||||
|
|
||||||
Need to be a subset of HVAC_MODES.
|
Need to be a subset of HVAC_MODES.
|
||||||
"""
|
"""
|
||||||
return [HVAC_MODE_COOL]
|
return [HVACMode.COOL]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def fan_mode(self):
|
def fan_mode(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user