mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-12 01:24:29 +05:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c4aae6b3ec | ||
|
|
58d243dcc3 |
@@ -1,5 +1,5 @@
|
||||
[bumpversion]
|
||||
current_version = 1.0.10b8
|
||||
current_version = 1.0.10b9
|
||||
parse = (?P<major>\d+)(\.(?P<minor>\d+))(\.(?P<patch>\d+))(?P<release>[bf]*)(?P<build>\d*)
|
||||
commit = True
|
||||
tag = True
|
||||
|
||||
@@ -129,12 +129,14 @@ class BaseMegaEntity(CoordinatorEntity, RestoreEntity):
|
||||
if self.hass is None:
|
||||
return {}
|
||||
if self._customize is None:
|
||||
c_entity_id = self.hass.data.get(DOMAIN, {}).get(self.entity_id, {})
|
||||
c = self.hass.data.get(DOMAIN, {}).get(CONF_CUSTOM) or {}
|
||||
c = c.get(self._mega_id) or {}
|
||||
c = c.get(self.port) or {}
|
||||
if self.addr is not None and self.index is not None and isinstance(c, dict):
|
||||
idx = self.addr.lower() + f'_a' if self.index == 0 else '_b'
|
||||
c = c.get(idx, {})
|
||||
c.update(c_entity_id)
|
||||
self._customize = c
|
||||
|
||||
return self._customize
|
||||
|
||||
@@ -15,5 +15,5 @@
|
||||
"@andvikt"
|
||||
],
|
||||
"issue_tracker": "https://github.com/andvikt/mega_hacs/issues",
|
||||
"version": "v1.0.10b8"
|
||||
"version": "v1.0.10b9"
|
||||
}
|
||||
Reference in New Issue
Block a user