Deprecate and remove lazy_error from modbus (#105037)
This commit is contained in:
parent
5b59e043fa
commit
0638088aee
16 changed files with 66 additions and 273 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue