Change Z-Wave JS discovery logic to adopt changes to DeviceClass (#46983)

Co-authored-by: raman325 <7243222+raman325@users.noreply.github.com>
This commit is contained in:
Marcel van der Veldt 2021-02-24 21:59:06 +01:00 committed by GitHub
parent afae253432
commit 23cbd2dda3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 261 additions and 339 deletions

View file

@ -429,10 +429,9 @@ async def websocket_update_log_config(
"""Update the driver log config."""
entry_id = msg[ENTRY_ID]
client = hass.data[DOMAIN][entry_id][DATA_CLIENT]
result = await client.driver.async_update_log_config(LogConfig(**msg[CONFIG]))
await client.driver.async_update_log_config(LogConfig(**msg[CONFIG]))
connection.send_result(
msg[ID],
result,
)