Add options flow to RainMachine (#42241)
* Add options flow to RainMachine * Linting
This commit is contained in:
1 parent
aef80263cd
commit
e61e8fafee
6 files changed
+114
-16
No files matched your search
@@ -11,6 +11,7 @@ from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||
|
||||
from . import RainMachineEntity
|
||||
from .const import (
|
||||
CONF_ZONE_RUN_TIME,
|
||||
DATA_CLIENT,
|
||||
DATA_PROGRAMS,
|
||||
DATA_ZONES,
|
||||
@@ -268,7 +269,8 @@ class RainMachineZone(RainMachineSwitch):
|
||||
"""Turn the zone on."""
|
||||
await self._async_run_switch_coroutine(
|
||||
self.rainmachine.controller.zones.start(
|
||||
self._rainmachine_entity_id, self.rainmachine.default_zone_runtime
|
||||
self._rainmachine_entity_id,
|
||||
self.rainmachine.config_entry.options[CONF_ZONE_RUN_TIME],
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user