Deprecate and remove lazy_error from modbus (#105037)

This commit is contained in:
jan iversen 2023-12-05 13:08:33 +01:00 committed by GitHub
parent 5b59e043fa
commit 0638088aee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 66 additions and 273 deletions

View file

@ -30,7 +30,7 @@ async def async_setup_platform(
for entry in discovery_info[CONF_SWITCHES]:
hub: ModbusHub = get_hub(hass, discovery_info[CONF_NAME])
switches.append(ModbusSwitch(hub, entry))
switches.append(ModbusSwitch(hass, hub, entry))
async_add_entities(switches)