solax-py-library 1.0.0.43__py3-none-any.whl → 1.0.0.44__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.
@@ -14,6 +14,7 @@ class DeviceType(IntEnum):
14
14
  FIRE_SAFETY_TYPE = 502
15
15
  COLD_TYPE = 503
16
16
  DEHUMIDIFY_TYPE = 504
17
+ ENVIRONMENT_MONITORING_TYPE = 505
17
18
 
18
19
  def __str__(self):
19
20
  return {
@@ -24,4 +25,5 @@ class DeviceType(IntEnum):
24
25
  DeviceType.IO_TYPE: "io",
25
26
  DeviceType.AIRCONDITIONER_TYPE: "air_conditioner",
26
27
  DeviceType.COLD_TYPE: "liquid_cooling_unit",
28
+ DeviceType.ENVIRONMENT_MONITORING_TYPE: "environment_monitoring",
27
29
  }.get(self)
@@ -13,6 +13,9 @@ class CabinetValue(BaseModel):
13
13
  bms_alarm: List[bool] = Field(default_factory=lambda: [False, False, False])
14
14
  air_alarm: List[bool] = Field(default_factory=lambda: [False, False, False])
15
15
  liquid_alarm: List[bool] = Field(default_factory=lambda: [False, False, False])
16
+ environment_monitoring_alarm: List[bool] = Field(
17
+ default_factory=lambda: [False, False, False]
18
+ )
16
19
 
17
20
  def alarm_info(self, device_type):
18
21
  if device_type == DeviceType.ESS_TYPE:
@@ -27,4 +30,6 @@ class CabinetValue(BaseModel):
27
30
  return self.air_alarm
28
31
  elif device_type == DeviceType.COLD_TYPE:
29
32
  return self.liquid_alarm
33
+ elif device_type == DeviceType.ENVIRONMENT_MONITORING_TYPE:
34
+ return self.environment_monitoring_alarm
30
35
  return None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: solax-py-library
3
- Version: 1.0.0.43
3
+ Version: 1.0.0.44
4
4
  Summary: some common tool
5
5
  Author: shenlvyu
6
6
  Author-email: 13296718439@163.com
@@ -8,7 +8,7 @@ solax_py_library/device/core/interver/__init__.py,sha256=RKye2D6NawSGdL4YUp_H-Lm
8
8
  solax_py_library/device/core/interver/base.py,sha256=2TXHsjigMcIvGDLF3ZD4dw6UDrRRAk9Mq6sdBKRvydc,7191
9
9
  solax_py_library/device/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  solax_py_library/device/types/alarm.py,sha256=kartXs_iRSV9Y3weFSsh9wMXU1_FxHZa6inHThyQCOk,358
11
- solax_py_library/device/types/device.py,sha256=H9M0EjA6WYBcj0GRpx3bstn9zsKg9wong4QVMR8eyO4,707
11
+ solax_py_library/device/types/device.py,sha256=w4XRtx_4N8lKjlHPV4KmyTa6qRldZwRkh7B4_iw5eaA,823
12
12
  solax_py_library/device/types/inverter_config.py,sha256=qCInNPbgsWf6yQjSw59kfQtJJWilMYUhvx_qo5qwRlU,912
13
13
  solax_py_library/device/types/modbus_point.py,sha256=YmXe92gWXL_voVXDJE5zzNzr6dpPs7Ff3ciOAW-LgPs,580
14
14
  solax_py_library/exception.py,sha256=ygAccdTqJctRrdt9bu6-vqZP5KadfKVS_1tjt4KcRn8,257
@@ -37,7 +37,7 @@ solax_py_library/smart_scene/exceptions/weather.py,sha256=bJl1VwiIXEpLQ9VjlVrDoT
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=UaIwwXDaWVYrcEtJfh7g2jTtFDMz2T1RQQ7VdphTMBs,12934
39
39
  solax_py_library/smart_scene/types/condition.py,sha256=0GdohR5oQf6nm8SHe5GKxGI51cGmkBH9AfLdnL96cRk,9732
40
- solax_py_library/smart_scene/types/condition_value.py,sha256=CxeDRGWJWZQZTG8KegZBTA6a4ZOCu2CUWyUJBkj94II,1242
40
+ solax_py_library/smart_scene/types/condition_value.py,sha256=O1q4Hd2o2WHj5DXWzgiTP_EcEIVzAw2gKVdE6I1efRA,1477
41
41
  solax_py_library/smart_scene/types/smart_scene_content.py,sha256=m9ZYOdGqxfyeHB2dsxH3iI3-XmtyhTMJK6HbwWJ-k7w,6073
42
42
  solax_py_library/snap_shot/__init__.py,sha256=Ex12q6BCkdU-3OP-f-ehGCetJJWnoZ7KxhEDd_lXh6M,81
43
43
  solax_py_library/snap_shot/constant/__init__.py,sha256=UNfjAlx1wovXc1oH74af9oIe2TljwCCiTzNXzWgtUms,65
@@ -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.43.dist-info/METADATA,sha256=ZOPCbSEeXFwLKn5gsiZJP25AsfodKszOllbBOSdpWdg,1825
83
- solax_py_library-1.0.0.43.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
84
- solax_py_library-1.0.0.43.dist-info/RECORD,,
82
+ solax_py_library-1.0.0.44.dist-info/METADATA,sha256=OvNYqkvKdTGtoLnrH_8_jlKLYVg65O1mS3LUqd5q_74,1825
83
+ solax_py_library-1.0.0.44.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
84
+ solax_py_library-1.0.0.44.dist-info/RECORD,,