mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-12 01:24:29 +05:00
add fill_na
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user