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

@@ -557,7 +557,7 @@ class MegaD:
ret['i2c_sensors'] = i2c_sensors = []
async for port, cfg in self.scan_ports(nports):
_cust = self.customize.get(port)
if not isinstance(_customise, dict):
if not isinstance(_cust, dict):
_cust = {}
if cfg.pty == "0":
ret['binary_sensor'][port].append({})