remove crap entities

This commit is contained in:
Andrey
2021-03-04 20:45:42 +03:00
parent 7135bb273e
commit 81d85ba1ed
8 changed files with 33 additions and 3 deletions

View File

@@ -58,6 +58,8 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, asyn
for data in cfg:
hub.lg.debug(f'add switch on port %s with data %s', port, data)
light = MegaSwitch(mega=hub, port=port, config_entry=config_entry, **data)
if '<' in light.name:
continue
devices.append(light)
async_add_devices(devices)