solax-py-library 1.0.0.29__py3-none-any.whl → 1.0.0.31__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.
@@ -29,8 +29,8 @@ class CabinetCondition(BaseCondition):
29
29
  if self.value[cabinet_sn].soc is None:
30
30
  continue
31
31
  if data.childData.function.function()(
32
- compare_value=self.value[cabinet_sn].soc,
33
- base_value=condition_data[0],
32
+ self.value[cabinet_sn].soc,
33
+ condition_data[0],
34
34
  ):
35
35
  return True
36
36
  elif data.childType == CabinetConditionType.cabinetAlarm:
@@ -31,5 +31,5 @@ class SystemCondition(BaseCondition):
31
31
  if compare_value is None:
32
32
  return False
33
33
  return function_value.function()(
34
- compare_value=abs(compare_value), base_value=child_data.data[0]
34
+ abs(compare_value), child_data.data[0]
35
35
  )
@@ -164,7 +164,7 @@ class SystemConditionItemData(ConditionItemData):
164
164
  if self.childType == SystemConditionType.systemSoc:
165
165
  soc = self.childData.data[0]
166
166
  if soc < soc_low_limit or soc > 100:
167
- return SocLimit.message, {"low_limit": soc_low_limit}
167
+ return SocLimit, {"low_limit": soc_low_limit}
168
168
 
169
169
 
170
170
  class CabinetConditionItemData(ConditionItemData):
@@ -205,7 +205,7 @@ class CabinetConditionItemData(ConditionItemData):
205
205
  if self.childType == CabinetConditionType.cabinetSoc:
206
206
  soc = self.childData.data[0]
207
207
  if soc < soc_low_limit or soc > 100:
208
- return SocLimit.message, {"low_limit": soc_low_limit}
208
+ return SocLimit, {"low_limit": soc_low_limit}
209
209
 
210
210
 
211
211
  class DateConditionItemData(ConditionItemData):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: solax-py-library
3
- Version: 1.0.0.29
3
+ Version: 1.0.0.31
4
4
  Summary: some common tool
5
5
  Author: shenlvyu
6
6
  Author-email: 13296718439@163.com
@@ -22,10 +22,10 @@ solax_py_library/smart_scene/core/action/ems_action.py,sha256=sML6qasFoqOktTvEcH
22
22
  solax_py_library/smart_scene/core/action/system_action.py,sha256=oGXq3yXS9nKcGjJActjk0R2Wr3AoO9uoyRPyuiM053g,204
23
23
  solax_py_library/smart_scene/core/condition/__init__.py,sha256=1nN-N52Oq7LKdn6ApKGtSZq5fB1qJzJq8BOKOumfQvY,475
24
24
  solax_py_library/smart_scene/core/condition/base.py,sha256=saj7dc0Su2Wi_Lx04cesHFgIPDyQUwvHuDElcaDOIHU,596
25
- solax_py_library/smart_scene/core/condition/cabinet_condition.py,sha256=HhOmFGs6srnC4oO5h1p3Z09Y9LPeywi1KaL5dG0pJf8,1724
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
27
  solax_py_library/smart_scene/core/condition/price_condition.py,sha256=IkgoB5YhpMxgFVkabilcBXtkjsqae01kkjF3tH10CK0,4006
28
- solax_py_library/smart_scene/core/condition/system_condition.py,sha256=q5KDQdK6wjEvq0__WwBR4Sk-59yA2aIAgxTf1xjxJQk,1338
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
31
31
  solax_py_library/smart_scene/core/service/check.py,sha256=qoNixyjgwHRdb0HnU3UcZDEOeI9t0PxvjZcbgvB79Vs,1031
@@ -36,7 +36,7 @@ solax_py_library/smart_scene/exceptions/smart_scene.py,sha256=69khvoFm1Eki4NBT45
36
36
  solax_py_library/smart_scene/exceptions/weather.py,sha256=bJl1VwiIXEpLQ9VjlVrDoTAIMFqVZdRCas7dtR7eAJc,133
37
37
  solax_py_library/smart_scene/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
38
  solax_py_library/smart_scene/types/action.py,sha256=l2OITe3098-5zrYZSI64yL_YdSXn_FhbMh8h_8wRYBU,12934
39
- solax_py_library/smart_scene/types/condition.py,sha256=etBD6hQHxyhtYucvIhKp0F1rTnaC6D2IEwQyzyuTzgY,9730
39
+ solax_py_library/smart_scene/types/condition.py,sha256=D96A0u8tTWmirTmVPtt5b_ewOCf8ntv0DBrSC0Myf_Y,9714
40
40
  solax_py_library/smart_scene/types/condition_value.py,sha256=by5R3sVNOJCrghLLaNT54jiTqZYT7YvQQ4q9ovIXkqQ,1242
41
41
  solax_py_library/smart_scene/types/smart_scene_content.py,sha256=C8H17QEicmDBbxN-m550njwaZyUhAL2hUhlLg3Qj1zM,6061
42
42
  solax_py_library/snap_shot/__init__.py,sha256=Ex12q6BCkdU-3OP-f-ehGCetJJWnoZ7KxhEDd_lXh6M,81
@@ -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.29.dist-info/METADATA,sha256=4jVVYgos5GjqYl6S09nOz8zK2dh08mxJBg3O7w9dRjU,1825
83
- solax_py_library-1.0.0.29.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
84
- solax_py_library-1.0.0.29.dist-info/RECORD,,
82
+ solax_py_library-1.0.0.31.dist-info/METADATA,sha256=21GQ4TeEHKB5rnRoiIJH--VAwuQIJmT6unSNMsL-xdQ,1825
83
+ solax_py_library-1.0.0.31.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
84
+ solax_py_library-1.0.0.31.dist-info/RECORD,,