mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-11 17:14:28 +05:00
fix customization i2c
This commit is contained in:
@@ -171,7 +171,12 @@ class MegaI2C(FilterBadValues):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def customize(self):
|
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
|
@property
|
||||||
def extra_state_attributes(self):
|
def extra_state_attributes(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user