Update home/auto hold mode to be consistent with current documentation
parent
f21b9988e9
commit
ef5edb95ba
|
@ -14,6 +14,7 @@ from homeassistant.components.climate import (
|
||||||
from homeassistant.components.nuheat import DATA_NUHEAT
|
from homeassistant.components.nuheat import DATA_NUHEAT
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
ATTR_TEMPERATURE,
|
ATTR_TEMPERATURE,
|
||||||
|
STATE_HOME,
|
||||||
TEMP_CELSIUS,
|
TEMP_CELSIUS,
|
||||||
TEMP_FAHRENHEIT)
|
TEMP_FAHRENHEIT)
|
||||||
from homeassistant.util import Throttle
|
from homeassistant.util import Throttle
|
||||||
|
@ -24,7 +25,8 @@ _LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=5)
|
MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=5)
|
||||||
|
|
||||||
MODE_AUTO = "auto" # Run device schedule
|
# Hold modes
|
||||||
|
MODE_AUTO = STATE_HOME # Run device schedule
|
||||||
MODE_AWAY = "away"
|
MODE_AWAY = "away"
|
||||||
MODE_HOLD_TEMPERATURE = "temperature"
|
MODE_HOLD_TEMPERATURE = "temperature"
|
||||||
MODE_TEMPORARY_HOLD = "temporary_temperature"
|
MODE_TEMPORARY_HOLD = "temporary_temperature"
|
||||||
|
|
|
@ -4,7 +4,7 @@ from unittest.mock import PropertyMock, Mock, patch
|
||||||
|
|
||||||
from homeassistant.components.climate import STATE_HEAT, STATE_IDLE
|
from homeassistant.components.climate import STATE_HEAT, STATE_IDLE
|
||||||
import homeassistant.components.climate.nuheat as nuheat
|
import homeassistant.components.climate.nuheat as nuheat
|
||||||
from homeassistant.const import TEMP_CELSIUS, TEMP_FAHRENHEIT
|
from homeassistant.const import STATE_HOME, TEMP_CELSIUS, TEMP_FAHRENHEIT
|
||||||
|
|
||||||
SCHEDULE_HOLD = 3
|
SCHEDULE_HOLD = 3
|
||||||
SCHEDULE_RUN = 1
|
SCHEDULE_RUN = 1
|
||||||
|
|
Loading…
Reference in New Issue