This commit is contained in:
Paulus Schoutsen 2019-07-31 12:25:30 -07:00
parent da05dfe708
commit 4de97abc3a
2676 changed files with 163166 additions and 140084 deletions

View file

@ -12,11 +12,13 @@ async def async_pulse(hass, ihc_controller, ihc_id: int):
def async_set_bool(hass, ihc_controller, ihc_id: int, value: bool):
"""Set a bool value on an IHC controller resource."""
return hass.async_add_executor_job(ihc_controller.set_runtime_value_bool,
ihc_id, value)
return hass.async_add_executor_job(
ihc_controller.set_runtime_value_bool, ihc_id, value
)
def async_set_int(hass, ihc_controller, ihc_id: int, value: int):
"""Set a int value on an IHC controller resource."""
return hass.async_add_executor_job(ihc_controller.set_runtime_value_int,
ihc_id, value)
return hass.async_add_executor_job(
ihc_controller.set_runtime_value_int, ihc_id, value
)