mirror of
https://github.com/USA-RedDragon/badnest.git
synced 2025-01-18 19:40:42 +00:00
maintain backwards compatibility
This commit is contained in:
parent
4d1ff43440
commit
549335e86f
@ -2,7 +2,10 @@
|
||||
from datetime import datetime
|
||||
import logging
|
||||
|
||||
from homeassistant.components.climate import ClimateEntity
|
||||
try:
|
||||
from homeassistant.components.climate import ClimateEntity
|
||||
except ImportError:
|
||||
from homeassistant.components.climate import ClimateDevice as ClimateEntity
|
||||
from homeassistant.components.climate.const import (
|
||||
ATTR_TARGET_TEMP_HIGH,
|
||||
ATTR_TARGET_TEMP_LOW,
|
||||
|
Loading…
x
Reference in New Issue
Block a user