mirror of
https://github.com/USA-RedDragon/badnest.git
synced 2025-01-18 19:20:44 +00:00
maintain backwards compatibility
This commit is contained in:
parent
4160f9c894
commit
76f0b306b8
@ -11,7 +11,6 @@ from homeassistant.const import (
|
|||||||
ATTR_ENTITY_ID,
|
ATTR_ENTITY_ID,
|
||||||
)
|
)
|
||||||
from homeassistant.components.water_heater import (
|
from homeassistant.components.water_heater import (
|
||||||
WaterHeaterDevice,
|
|
||||||
SCAN_INTERVAL,
|
SCAN_INTERVAL,
|
||||||
STATE_OFF,
|
STATE_OFF,
|
||||||
STATE_ON,
|
STATE_ON,
|
||||||
@ -22,6 +21,11 @@ from homeassistant.components.water_heater import (
|
|||||||
ATTR_OPERATION_MODE,
|
ATTR_OPERATION_MODE,
|
||||||
ATTR_OPERATION_LIST,
|
ATTR_OPERATION_LIST,
|
||||||
)
|
)
|
||||||
|
try:
|
||||||
|
from homeassistant.components.water_heater import WaterHeaterEntity
|
||||||
|
except ImportError:
|
||||||
|
from homeassistant.components.water_heater import WaterHeaterDevice as WaterHeaterEntity
|
||||||
|
|
||||||
from .const import (
|
from .const import (
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user