mirror of
https://github.com/home-assistant/core.git
synced 2025-06-26 16:07:08 +00:00
Update home/auto hold mode to be consistent with current documentation
This commit is contained in:
parent
f21b9988e9
commit
ef5edb95ba
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user