mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
Add services.yaml entry for new WeMo Humidifier platform service (#18032)
* WeMo Humidifier - Add entry to services.yaml * WeMo Humidifier - Fix typo in wemo.py * WeMo Humidifier - Fixed incorrect parameter name
This commit is contained in:
parent
e85e5789a2
commit
239e314dc1
@ -204,3 +204,13 @@ xiaomi_miio_set_dry_off:
|
||||
entity_id:
|
||||
description: Name of the xiaomi miio entity.
|
||||
example: 'fan.xiaomi_miio_device'
|
||||
|
||||
wemo_set_humidity:
|
||||
description: Set the target humidity of WeMo humidifier devices.
|
||||
fields:
|
||||
entity_id:
|
||||
description: Names of the WeMo humidifier entities (0 or more entities, if no entity_id is provided, all WeMo humidifiers will have the target humidity set).
|
||||
example: 'fan.wemo_humidifier'
|
||||
target_humidity:
|
||||
description: Target humidity. This is a float value between 0 and 100, but will be mapped to the humidity levels that WeMo humidifiers support (45, 50, 55, 60, and 100/Max) by rounding the value down to the nearest supported value.
|
||||
example: 56.5
|
||||
|
@ -251,7 +251,7 @@ class WemoHumidifier(FanEntity):
|
||||
async def _async_locked_update(self, force_update):
|
||||
"""Try updating within an async lock."""
|
||||
async with self._update_lock:
|
||||
await self.hass.asyn_add_executor_job(self._update, force_update)
|
||||
await self.hass.async_add_executor_job(self._update, force_update)
|
||||
|
||||
def _update(self, force_update=True):
|
||||
"""Update the device state."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user