mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-10 16:44:28 +05:00
fix customization i2c
This commit is contained in:
@@ -171,7 +171,12 @@ class MegaI2C(FilterBadValues):
|
||||
|
||||
@property
|
||||
def customize(self):
|
||||
return super().customize.get(self.id_suffix, {}) or {}
|
||||
ret = super().customize
|
||||
_old = ret.get(self.id_suffix)
|
||||
if _old is not None:
|
||||
ret = ret.copy()
|
||||
ret.update(_old)
|
||||
return ret
|
||||
|
||||
@property
|
||||
def extra_state_attributes(self):
|
||||
|
||||
Reference in New Issue
Block a user