solax-py-library 1.0.0.33__py3-none-any.whl → 1.0.0.34__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,7 +37,7 @@ class ElePriceCondition(BaseCondition):
37
37
  base = max(price[0:96]) - value
38
38
  else: # 比最高电价低X%
39
39
  base = round(max(price[0:96]) * (1 - value / 100), 4)
40
- if self.value[index] <= base:
40
+ if price[index] <= base:
41
41
  return True
42
42
  else:
43
43
  return False
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: solax-py-library
3
- Version: 1.0.0.33
3
+ Version: 1.0.0.34
4
4
  Summary: some common tool
5
5
  Author: shenlvyu
6
6
  Author-email: 13296718439@163.com
@@ -24,7 +24,7 @@ solax_py_library/smart_scene/core/condition/__init__.py,sha256=1nN-N52Oq7LKdn6Ap
24
24
  solax_py_library/smart_scene/core/condition/base.py,sha256=saj7dc0Su2Wi_Lx04cesHFgIPDyQUwvHuDElcaDOIHU,596
25
25
  solax_py_library/smart_scene/core/condition/cabinet_condition.py,sha256=3WfF5mxnNuJcQ9O0-5IDkfah7oodKWrvXRV3lftZNNg,1699
26
26
  solax_py_library/smart_scene/core/condition/date_condition.py,sha256=Xhca6VjoM8Bq-I-dFj1RPLTTzbBL81ORkBnR8D-YqUw,772
27
- solax_py_library/smart_scene/core/condition/price_condition.py,sha256=IkgoB5YhpMxgFVkabilcBXtkjsqae01kkjF3tH10CK0,4006
27
+ solax_py_library/smart_scene/core/condition/price_condition.py,sha256=ToMtTfyJ9hYLY6a0J2Zj4yuCghUq6gzEU42YER1Tbbo,4001
28
28
  solax_py_library/smart_scene/core/condition/system_condition.py,sha256=FnAhbQ1mGKPbmOR3IDybRig7sPTPg1-byu1a6Y-WPhQ,1313
29
29
  solax_py_library/smart_scene/core/condition/weather_condition.py,sha256=ZoP5QM0kswQCrb1N22_W358BnhgDc6eXp9XPR5WKAgs,2363
30
30
  solax_py_library/smart_scene/core/service/__init__.py,sha256=wWzHSN2XaHnI-TNtCJWWRHnNC7s3-2GNQo9y0K_PC4Q,69
@@ -79,6 +79,6 @@ solax_py_library/utils/cloud_client.py,sha256=5dZrc5fzrNFSXqTPZd7oHt-Y9Jj6RCigB7
79
79
  solax_py_library/utils/common.py,sha256=bfnZcX9uM-PjJrYAFv1UMmZgt6bGR7MaOd7jRPNHGxw,1238
80
80
  solax_py_library/utils/struct_util.py,sha256=pL6L80GXIHasy1ZDIj89-5BzXW1BWI3TPitH7thGGIE,1577
81
81
  solax_py_library/utils/time_util.py,sha256=bY5kj9dmyOuLEQ6uYGQK7jU7y1RMiHZgevEKnkcQcSU,1461
82
- solax_py_library-1.0.0.33.dist-info/METADATA,sha256=2DHP6Ql2xhCDagBou7h06FdoYkia1nEheAy_WnbUldA,1825
83
- solax_py_library-1.0.0.33.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
84
- solax_py_library-1.0.0.33.dist-info/RECORD,,
82
+ solax_py_library-1.0.0.34.dist-info/METADATA,sha256=kXrytbTqBzInoMcyo1EQzO3MKMzl5fmPW7UCpqH4Qto,1825
83
+ solax_py_library-1.0.0.34.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
84
+ solax_py_library-1.0.0.34.dist-info/RECORD,,