mirror of
https://github.com/andvikt/mega_hacs.git
synced 2026-02-04 16:37:46 +05:00
remove crap entities
This commit is contained in:
@@ -57,6 +57,8 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, asyn
|
||||
continue
|
||||
hub.lg.debug(f'add binary_sensor on port %s', port)
|
||||
sensor = MegaBinarySensor(mega=hub, port=port, config_entry=config_entry)
|
||||
if '<' in sensor.name:
|
||||
continue
|
||||
devices.append(sensor)
|
||||
async_add_devices(devices)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user