solax-py-library 1.0.0.44__py3-none-any.whl → 1.0.0.46__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.
- solax_py_library/smart_scene/constant/message_entry.py +1 -0
- solax_py_library/smart_scene/types/condition.py +4 -2
- {solax_py_library-1.0.0.44.dist-info → solax_py_library-1.0.0.46.dist-info}/METADATA +1 -1
- {solax_py_library-1.0.0.44.dist-info → solax_py_library-1.0.0.46.dist-info}/RECORD +5 -5
- {solax_py_library-1.0.0.44.dist-info → solax_py_library-1.0.0.46.dist-info}/WHEEL +0 -0
@@ -185,5 +185,6 @@ MESSAGE_ENTRY = {
|
|
185
185
|
"io": {"zh_CN": "IO模块", "en_US": "IO Module"},
|
186
186
|
"air_conditioner": {"zh_CN": "空调", "en_US": "Air conditioner"},
|
187
187
|
"liquid_cooling_unit": {"zh_CN": "液冷机组", "en_US": "Liquid Cooling Unit"},
|
188
|
+
"environment_monitoring": {"zh_CN": "动环监控", "en_US": "Environmental Monitoring"},
|
188
189
|
"ess": {"zh_CN": "机柜", "en_US": "Cabinet"},
|
189
190
|
}
|
@@ -113,14 +113,16 @@ class PriceConditionItemData(ConditionItemData):
|
|
113
113
|
func = self.childData.function
|
114
114
|
if self.childType == PriceConditionType.price:
|
115
115
|
return MESSAGE_ENTRY[self.childType][lang].format(
|
116
|
-
MESSAGE_ENTRY[str(func.value)][lang],
|
116
|
+
MESSAGE_ENTRY[str(func.value)][lang],
|
117
|
+
f"{data[0]:.5f}".rstrip("0").rstrip("."),
|
118
|
+
unit,
|
117
119
|
)
|
118
120
|
elif self.childType in {
|
119
121
|
PriceConditionType.lowerPrice,
|
120
122
|
PriceConditionType.higherPrice,
|
121
123
|
}:
|
122
124
|
return MESSAGE_ENTRY[self.childType][lang].format(
|
123
|
-
f"{data[0]:.5f}", "%" if data[1] == 1 else unit
|
125
|
+
f"{data[0]:.5f}".rstrip("0").rstrip("."), "%" if data[1] == 1 else unit
|
124
126
|
)
|
125
127
|
elif self.childType in {
|
126
128
|
PriceConditionType.expensiveHours,
|
@@ -14,7 +14,7 @@ solax_py_library/device/types/modbus_point.py,sha256=YmXe92gWXL_voVXDJE5zzNzr6dp
|
|
14
14
|
solax_py_library/exception.py,sha256=ygAccdTqJctRrdt9bu6-vqZP5KadfKVS_1tjt4KcRn8,257
|
15
15
|
solax_py_library/smart_scene/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
16
|
solax_py_library/smart_scene/constant/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
17
|
-
solax_py_library/smart_scene/constant/message_entry.py,sha256=
|
17
|
+
solax_py_library/smart_scene/constant/message_entry.py,sha256=s6mfwOLUHjoti3DJjrF3NTNsGnbbxMLRlPMW7EjmXTY,9594
|
18
18
|
solax_py_library/smart_scene/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
19
19
|
solax_py_library/smart_scene/core/action/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
20
20
|
solax_py_library/smart_scene/core/action/base.py,sha256=GlZQTi7ub0fREV5BUZQUTARw3mleWWsKHOA7eFPVoJs,319
|
@@ -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=UaIwwXDaWVYrcEtJfh7g2jTtFDMz2T1RQQ7VdphTMBs,12934
|
39
|
-
solax_py_library/smart_scene/types/condition.py,sha256=
|
39
|
+
solax_py_library/smart_scene/types/condition.py,sha256=mdO18M7jgZr3R2FcwoqOSSvP71OqkXYhQ2Q1Wp55z9w,9813
|
40
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
|
@@ -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.
|
83
|
-
solax_py_library-1.0.0.
|
84
|
-
solax_py_library-1.0.0.
|
82
|
+
solax_py_library-1.0.0.46.dist-info/METADATA,sha256=co5JW0SQc3mGl4g2JBrsbSgDAFquuRPoMViVGhu7b-4,1825
|
83
|
+
solax_py_library-1.0.0.46.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
84
|
+
solax_py_library-1.0.0.46.dist-info/RECORD,,
|
File without changes
|