mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-12 17:44:28 +05:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9d5ea9697d | ||
|
|
3e5435059d |
@@ -1,5 +1,5 @@
|
|||||||
[bumpversion]
|
[bumpversion]
|
||||||
current_version = 1.1.8b10
|
current_version = 1.1.8b11
|
||||||
parse = (?P<major>\d+)(\.(?P<minor>\d+))(\.(?P<patch>\d+))(?P<release>[bf]*)(?P<build>\d*)
|
parse = (?P<major>\d+)(\.(?P<minor>\d+))(\.(?P<patch>\d+))(?P<release>[bf]*)(?P<build>\d*)
|
||||||
commit = True
|
commit = True
|
||||||
tag = True
|
tag = True
|
||||||
|
|||||||
@@ -519,11 +519,14 @@ class MegaD:
|
|||||||
elif idx is not None and idx > 0:
|
elif idx is not None and idx > 0:
|
||||||
v: str = self.values.get(f"chache_{pt}")
|
v: str = self.values.get(f"chache_{pt}")
|
||||||
if idx is not None:
|
if idx is not None:
|
||||||
v = safe_float(v.split("/")[idx])
|
vv = v.split("/")
|
||||||
ret = {_params: v}
|
if len(vv) == 3:
|
||||||
|
v = vv[idx]
|
||||||
|
else:
|
||||||
|
v: None
|
||||||
|
ret = {_params: safe_float(v)}
|
||||||
except Exception:
|
except Exception:
|
||||||
self.lg.exception(f"while getting i2c {params=}")
|
self.lg.exception(f"while getting i2c {params=}")
|
||||||
except asyncio.TimeoutError:
|
|
||||||
return
|
return
|
||||||
self.lg.debug("i2c response: %s", ret)
|
self.lg.debug("i2c response: %s", ret)
|
||||||
if delay:
|
if delay:
|
||||||
|
|||||||
@@ -15,5 +15,5 @@
|
|||||||
"@andvikt"
|
"@andvikt"
|
||||||
],
|
],
|
||||||
"issue_tracker": "https://github.com/andvikt/mega_hacs/issues",
|
"issue_tracker": "https://github.com/andvikt/mega_hacs/issues",
|
||||||
"version": "v1.1.8b10"
|
"version": "v1.1.8b11"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user