add fill_na

This commit is contained in:
Викторов Андрей Германович
2021-10-29 15:26:21 +03:00
parent 647baa9bb1
commit 6368fd7cfc
2 changed files with 4 additions and 2 deletions

View File

@@ -324,7 +324,10 @@ class Mega1WSensor(FilterBadValues):
n = super().name
c = self.customize.get(CONF_NAME, {})
if isinstance(c, dict):
c = c.get(self.key)
try:
c = c.get(self.key)
except:
pass
return c or n