Migrate nut to use aionut (#114078)

This commit is contained in:
J. Nick Koston 2024-03-23 12:02:02 -10:00 committed by GitHub
parent d4f158d079
commit 4ac439ef88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 123 additions and 107 deletions

View file

@ -58,7 +58,7 @@ async def async_call_action_from_config(
device_id: str = config[CONF_DEVICE_ID]
entry_id = _get_entry_id_from_device_id(hass, device_id)
data: PyNUTData = hass.data[DOMAIN][entry_id][PYNUT_DATA]
await data.async_run_command(hass, command_name)
await data.async_run_command(command_name)
def _get_device_action_name(command_name: str) -> str: