solax-py-library 1.0.0.2520__py3-none-any.whl → 1.0.0.2521__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.
@@ -173,4 +173,7 @@ MESSAGE_ENTRY = {
173
173
  "cabinetAlarm": {"zh_CN": "机柜发生{}", "en_US": "cabinet occurs {}"},
174
174
  "OR": {"zh_CN": "满足任一条件", "en_US": "Meet any of the conditions"},
175
175
  "AND": {"zh_CN": "满足所有条件", "en_US": "Meet all conditions"},
176
+ "tips_alarm": {"zh_CN": "状态提醒", "en_US": "Alarm tips"},
177
+ "normal_alarm": {"zh_CN": "普通告警", "en_US": "Normal alarm"},
178
+ "emergency_alarm": {"zh_CN": "紧急告警", "en_US": "Emergency alarm"},
176
179
  }
@@ -181,7 +181,7 @@ class CabinetConditionItemData(BaseModel):
181
181
  )
182
182
  elif self.childType == CabinetConditionType.cabinetAlarm:
183
183
  return MESSAGE_ENTRY[self.childType][lang].format(
184
- MESSAGE_ENTRY[str(data[0])][lang], lang
184
+ MESSAGE_ENTRY[str(AlarmLevel(data[0]))][lang], lang
185
185
  )
186
186
 
187
187
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: solax-py-library
3
- Version: 1.0.0.2520
3
+ Version: 1.0.0.2521
4
4
  Summary: some common tool
5
5
  Author: shenlvyu
6
6
  Author-email: 13296718439@163.com
@@ -13,7 +13,7 @@ solax_py_library/device/types/modbus_point.py,sha256=YmXe92gWXL_voVXDJE5zzNzr6dp
13
13
  solax_py_library/exception.py,sha256=ygAccdTqJctRrdt9bu6-vqZP5KadfKVS_1tjt4KcRn8,257
14
14
  solax_py_library/smart_scene/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  solax_py_library/smart_scene/constant/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
- solax_py_library/smart_scene/constant/message_entry.py,sha256=Ah2yDNpsf1W4HKD-tCzK6xtew0H5TLN7ko7kSsXgcng,8973
16
+ solax_py_library/smart_scene/constant/message_entry.py,sha256=r-hSUQItc0xEgodXtDct7AltFHQZxj5KH6ZP_ioZtAQ,9191
17
17
  solax_py_library/smart_scene/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
18
  solax_py_library/smart_scene/core/action/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  solax_py_library/smart_scene/core/action/base.py,sha256=CCYrlCZeb3CfGZgTWQN673VJmuYNsTbEtdZ4ERUV7RA,395
@@ -34,7 +34,7 @@ solax_py_library/smart_scene/exceptions/smart_scene.py,sha256=69khvoFm1Eki4NBT45
34
34
  solax_py_library/smart_scene/exceptions/weather.py,sha256=bJl1VwiIXEpLQ9VjlVrDoTAIMFqVZdRCas7dtR7eAJc,133
35
35
  solax_py_library/smart_scene/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
36
  solax_py_library/smart_scene/types/action.py,sha256=cYICnxLfLRWFAlOGWpS2HBw-PyaB6TNlNuEmSsme26k,5723
37
- solax_py_library/smart_scene/types/condition.py,sha256=xJGv4Xv-kRzMYzlj6y6Q3eeMSVLwoOY9V-denlyicik,9552
37
+ solax_py_library/smart_scene/types/condition.py,sha256=mGjd-Kh34EjnHf8IKKAOdYPhPHlLB0HRVzC1pfkZsxo,9564
38
38
  solax_py_library/smart_scene/types/smart_scene_content.py,sha256=C8H17QEicmDBbxN-m550njwaZyUhAL2hUhlLg3Qj1zM,6061
39
39
  solax_py_library/snap_shot/__init__.py,sha256=Ex12q6BCkdU-3OP-f-ehGCetJJWnoZ7KxhEDd_lXh6M,81
40
40
  solax_py_library/snap_shot/constant/__init__.py,sha256=UNfjAlx1wovXc1oH74af9oIe2TljwCCiTzNXzWgtUms,65
@@ -75,6 +75,6 @@ solax_py_library/utils/cloud_client.py,sha256=5dZrc5fzrNFSXqTPZd7oHt-Y9Jj6RCigB7
75
75
  solax_py_library/utils/common.py,sha256=bfnZcX9uM-PjJrYAFv1UMmZgt6bGR7MaOd7jRPNHGxw,1238
76
76
  solax_py_library/utils/struct_util.py,sha256=pL6L80GXIHasy1ZDIj89-5BzXW1BWI3TPitH7thGGIE,1577
77
77
  solax_py_library/utils/time_util.py,sha256=bY5kj9dmyOuLEQ6uYGQK7jU7y1RMiHZgevEKnkcQcSU,1461
78
- solax_py_library-1.0.0.2520.dist-info/METADATA,sha256=hFMhtvXGObFpFJqqCcPozH4MEG3kM2vLcwATWYcJDJQ,1827
79
- solax_py_library-1.0.0.2520.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
80
- solax_py_library-1.0.0.2520.dist-info/RECORD,,
78
+ solax_py_library-1.0.0.2521.dist-info/METADATA,sha256=ndbTwHuJzVmozQGkSDa5uw-5QBja-FXtBhKkIuuw5BY,1827
79
+ solax_py_library-1.0.0.2521.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
80
+ solax_py_library-1.0.0.2521.dist-info/RECORD,,