mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-12 01:24:29 +05:00
Compare commits
5 Commits
v1.0.10b10
...
v1.0.10b12
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6411e6e5f9 | ||
|
|
2020a840a8 | ||
|
|
f6c2cd025e | ||
|
|
ab599cd59d | ||
|
|
a349cbd4a4 |
@@ -1,5 +1,5 @@
|
||||
[bumpversion]
|
||||
current_version = 1.0.10b10
|
||||
current_version = 1.0.10b12
|
||||
parse = (?P<major>\d+)(\.(?P<minor>\d+))(\.(?P<patch>\d+))(?P<release>[bf]*)(?P<build>\d*)
|
||||
commit = True
|
||||
tag = True
|
||||
|
||||
@@ -104,10 +104,11 @@ CONFIG_SCHEMA = vol.Schema(
|
||||
{
|
||||
DOMAIN: {
|
||||
vol.Optional(CONF_ALLOW_HOSTS): [str],
|
||||
vol.Optional('entities'): vol.Any(
|
||||
vol.Optional('entities'): {
|
||||
vol.Optional(str): vol.Any(
|
||||
CUSTOMIZE_PORT,
|
||||
CUSTOMIZE_DS2413
|
||||
),
|
||||
)},
|
||||
vol.Optional(vol.Any(str, int), description='id меги из веб-интерфейса'): {
|
||||
vol.Optional(CONF_FORCE_D, description='Принудительно слать d после срабатывания входа', default=False): bool,
|
||||
vol.Optional(
|
||||
|
||||
@@ -129,7 +129,7 @@ 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_entity_id = self.hass.data.get(DOMAIN, {}).get('entities', {}).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 {}
|
||||
|
||||
@@ -310,8 +310,8 @@ class MegaD:
|
||||
return ret
|
||||
except asyncio.TimeoutError:
|
||||
self.lg.warning(f'timeout while requesting {url}')
|
||||
raise
|
||||
# await asyncio.sleep(1)
|
||||
# raise
|
||||
await asyncio.sleep(1)
|
||||
raise asyncio.TimeoutError('after 3 tries')
|
||||
|
||||
async def save(self):
|
||||
|
||||
@@ -15,5 +15,5 @@
|
||||
"@andvikt"
|
||||
],
|
||||
"issue_tracker": "https://github.com/andvikt/mega_hacs/issues",
|
||||
"version": "v1.0.10b10"
|
||||
"version": "v1.0.10b12"
|
||||
}
|
||||
Reference in New Issue
Block a user