Update home/auto hold mode to be consistent with current documentation

pull/10535/head
Derek Brooks 2017-11-13 11:38:08 -06:00
parent f21b9988e9
commit ef5edb95ba
2 changed files with 4 additions and 2 deletions

View File

@ -14,6 +14,7 @@ from homeassistant.components.climate import (
from homeassistant.components.nuheat import DATA_NUHEAT
from homeassistant.const import (
ATTR_TEMPERATURE,
STATE_HOME,
TEMP_CELSIUS,
TEMP_FAHRENHEIT)
from homeassistant.util import Throttle
@ -24,7 +25,8 @@ _LOGGER = logging.getLogger(__name__)
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_HOLD_TEMPERATURE = "temperature"
MODE_TEMPORARY_HOLD = "temporary_temperature"

View File

@ -4,7 +4,7 @@ from unittest.mock import PropertyMock, Mock, patch
from homeassistant.components.climate import STATE_HEAT, STATE_IDLE
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_RUN = 1