solax-py-library 1.0.0.41__py3-none-any.whl → 1.0.0.43__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.
@@ -113,14 +113,14 @@ 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], data[0], unit
116
+ MESSAGE_ENTRY[str(func.value)][lang], f"{data[0]:.5f}", unit
117
117
  )
118
118
  elif self.childType in {
119
119
  PriceConditionType.lowerPrice,
120
120
  PriceConditionType.higherPrice,
121
121
  }:
122
122
  return MESSAGE_ENTRY[self.childType][lang].format(
123
- data[0], "%" if data[1] == 1 else unit
123
+ f"{data[0]:.5f}", "%" if data[1] == 1 else unit
124
124
  )
125
125
  elif self.childType in {
126
126
  PriceConditionType.expensiveHours,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: solax-py-library
3
- Version: 1.0.0.41
3
+ Version: 1.0.0.43
4
4
  Summary: some common tool
5
5
  Author: shenlvyu
6
6
  Author-email: 13296718439@163.com
@@ -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=FSI4JjL2TAeKeyMvTifWv9opha-gCraLhwj5h08vuUo,9714
39
+ solax_py_library/smart_scene/types/condition.py,sha256=0GdohR5oQf6nm8SHe5GKxGI51cGmkBH9AfLdnL96cRk,9732
40
40
  solax_py_library/smart_scene/types/condition_value.py,sha256=CxeDRGWJWZQZTG8KegZBTA6a4ZOCu2CUWyUJBkj94II,1242
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.41.dist-info/METADATA,sha256=Gv0ZwI1ivgF_onCwvYq4gLcfL8H2sRq7XYgwbQodgt4,1825
83
- solax_py_library-1.0.0.41.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
84
- solax_py_library-1.0.0.41.dist-info/RECORD,,
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,,