Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
23f92a5f33 |
@@ -1,4 +1,4 @@
|
|||||||
DOMAIN = "state_grid"
|
DOMAIN = "state_grid"
|
||||||
PACKAGE_NAME = "custom_components.state_grid"
|
PACKAGE_NAME = "custom_components.state_grid"
|
||||||
VERSION = "0.1.4"
|
VERSION = "0.1.5"
|
||||||
VERSION_STORAGE = 1
|
VERSION_STORAGE = 1
|
||||||
|
|||||||
@@ -343,9 +343,8 @@ class StateGridDataClient:
|
|||||||
if q is _i:return
|
if q is _i:return
|
||||||
H=datetime.datetime.now();F=H-datetime.timedelta(days=1);d=f"{F.year}-{F.month:02d}-{F.day:02d}";V=F-datetime.timedelta(days=40);r=f"{V.year}-{V.month:02d}-{V.day:02d}"
|
H=datetime.datetime.now();F=H-datetime.timedelta(days=1);d=f"{F.year}-{F.month:02d}-{F.day:02d}";V=F-datetime.timedelta(days=40);r=f"{V.year}-{V.month:02d}-{V.day:02d}"
|
||||||
for A in B.powerUserList:
|
for A in B.powerUserList:
|
||||||
s=A[_g];B.doorAccountDict[s]=A
|
s=A[_g];B.doorAccountDict[s]=A;await B.__get_door_balance(A)
|
||||||
if Z in A and A[Z]==d:A[Y]=datetime.datetime.strftime(H,n);continue
|
if Z in A and A[Z]==d:A[Y]=datetime.datetime.strftime(H,n);continue
|
||||||
await B.__get_door_balance(A)
|
|
||||||
if B.retry_times!=0:return
|
if B.retry_times!=0:return
|
||||||
if _A5 in A:
|
if _A5 in A:
|
||||||
t=catchFloat(A[_A5],'estiAmt');W=catchFloat(A[_A5],'prepayBal');e=catchFloat(A[_A5],'sumMoney')
|
t=catchFloat(A[_A5],'estiAmt');W=catchFloat(A[_A5],'prepayBal');e=catchFloat(A[_A5],'sumMoney')
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://hassbox.cn/",
|
"documentation": "https://hassbox.cn/",
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"version": "0.1.4"
|
"version": "0.1.5"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user