solax-py-library 1.0.0.2505__py3-none-any.whl → 1.0.0.2507__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/core/condition/base.py +1 -1
- solax_py_library/smart_scene/exceptions/price.py +1 -1
- solax_py_library/smart_scene/exceptions/smart_scene.py +19 -19
- {solax_py_library-1.0.0.2505.dist-info → solax_py_library-1.0.0.2507.dist-info}/METADATA +1 -1
- {solax_py_library-1.0.0.2505.dist-info → solax_py_library-1.0.0.2507.dist-info}/RECORD +6 -6
- {solax_py_library-1.0.0.2505.dist-info → solax_py_library-1.0.0.2507.dist-info}/WHEEL +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
class BaseCondition(object):
|
2
2
|
def __init__(self, update_value_function, **kwargs):
|
3
3
|
self.value = {}
|
4
|
-
if callable(update_value_function):
|
4
|
+
if not callable(update_value_function):
|
5
5
|
raise ValueError("update_value_function must be callable")
|
6
6
|
self.update_value_function = update_value_function
|
7
7
|
|
@@ -2,79 +2,79 @@ from solax_py_library.exception import SolaxBaseError
|
|
2
2
|
|
3
3
|
|
4
4
|
class OnlyPositive(SolaxBaseError):
|
5
|
-
message = "
|
5
|
+
message = "smart_scene__only_positive"
|
6
6
|
|
7
7
|
|
8
8
|
class TimeRange(SolaxBaseError):
|
9
|
-
message = "
|
9
|
+
message = "smart_scene__time_range"
|
10
10
|
|
11
11
|
|
12
12
|
class IrradianceOnlyPositive(SolaxBaseError):
|
13
|
-
message = "
|
13
|
+
message = "smart_scene__irradiance_only_positive"
|
14
14
|
|
15
15
|
|
16
16
|
class ExportLimitNum(SolaxBaseError):
|
17
|
-
message = "
|
17
|
+
message = "smart_scene__export_limit_num"
|
18
18
|
|
19
19
|
|
20
20
|
class ExportLimitPercent(SolaxBaseError):
|
21
|
-
message = "
|
21
|
+
message = "smart_scene__export_limit_percent"
|
22
22
|
|
23
23
|
|
24
24
|
class ImportLimitNum(SolaxBaseError):
|
25
|
-
message = "
|
25
|
+
message = "smart_scene__import_limit_num"
|
26
26
|
|
27
27
|
|
28
28
|
class ImportOnlyPositive(SolaxBaseError):
|
29
|
-
message = "
|
29
|
+
message = "smart_scene__import_only_positive"
|
30
30
|
|
31
31
|
|
32
32
|
class SocLimit(SolaxBaseError):
|
33
|
-
message = "
|
33
|
+
message = "smart_scene__soc_limit"
|
34
34
|
|
35
35
|
|
36
36
|
class ActivePowerLimitNum(SolaxBaseError):
|
37
|
-
message = "
|
37
|
+
message = "smart_scene__active_power_limit_num"
|
38
38
|
|
39
39
|
|
40
40
|
class ReactivePowerLimitNum(SolaxBaseError):
|
41
|
-
message = "
|
41
|
+
message = "smart_scene__reactive_power_limit_num"
|
42
42
|
|
43
43
|
|
44
44
|
class EnergyLimit(SolaxBaseError):
|
45
|
-
message = "
|
45
|
+
message = "smart_scene__energy_limit"
|
46
46
|
|
47
47
|
|
48
48
|
class PowerLimitNum(SolaxBaseError):
|
49
|
-
message = "
|
49
|
+
message = "smart_scene__power_limit_num"
|
50
50
|
|
51
51
|
|
52
52
|
class BatteryPowerLimitNum(SolaxBaseError):
|
53
|
-
message = "
|
53
|
+
message = "smart_scene__battery_power_limit_num"
|
54
54
|
|
55
55
|
|
56
56
|
class PvOnlyGe0(SolaxBaseError):
|
57
|
-
message = "
|
57
|
+
message = "smart_scene__pv_only_ge_0"
|
58
58
|
|
59
59
|
|
60
60
|
class MissParam(SolaxBaseError):
|
61
|
-
message = "
|
61
|
+
message = "smart_scene__miss_param"
|
62
62
|
|
63
63
|
|
64
64
|
class CountLimit(SolaxBaseError):
|
65
|
-
message = "
|
65
|
+
message = "smart_scene__count_limit"
|
66
66
|
|
67
67
|
|
68
68
|
class NameLengthLimit(SolaxBaseError):
|
69
|
-
message = "
|
69
|
+
message = "smart_scene__name_length_limit"
|
70
70
|
|
71
71
|
|
72
72
|
class UniqueLimit(SolaxBaseError):
|
73
|
-
message = "
|
73
|
+
message = "smart_scene__unique_limit"
|
74
74
|
|
75
75
|
|
76
76
|
class ElectricityPriceFailure(SolaxBaseError):
|
77
|
-
message = "
|
77
|
+
message = "cloud__electricity_price_failure"
|
78
78
|
|
79
79
|
|
80
80
|
class WeatherFailure(SolaxBaseError):
|
@@ -20,7 +20,7 @@ solax_py_library/smart_scene/core/action/base.py,sha256=vSC3rL9qfPy41Nlds_0QcTLM
|
|
20
20
|
solax_py_library/smart_scene/core/action/ems_action.py,sha256=tasL7pUJbnmrEEokAa9Mug5eUFvHuFKGYZKNvNMdrBs,610
|
21
21
|
solax_py_library/smart_scene/core/action/system_action.py,sha256=mVLTg9pZ7tDayLbr3I92a33snA2AGT3meUdm_XYDQEc,10839
|
22
22
|
solax_py_library/smart_scene/core/condition/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
23
|
-
solax_py_library/smart_scene/core/condition/base.py,sha256=
|
23
|
+
solax_py_library/smart_scene/core/condition/base.py,sha256=SIxUieoHkiuRQvmUCkI22knFzOlHkmAcbsuOWJeQGHk,429
|
24
24
|
solax_py_library/smart_scene/core/condition/cabinet_condition.py,sha256=YhjmwgFBlugkMeRz6zfu1bV_Q-2LAbq5vjHfZgewSXE,1518
|
25
25
|
solax_py_library/smart_scene/core/condition/date_condition.py,sha256=8dbYhftUzGKQJkDqIkV_hjf4PIhKJrUCo9fv-_93sl8,855
|
26
26
|
solax_py_library/smart_scene/core/condition/price_condition.py,sha256=kAIkg5VxTOd5gTRHzqU23ZgFYSkcvF_haqzVKA-uDZc,3768
|
@@ -29,8 +29,8 @@ solax_py_library/smart_scene/core/condition/weather_condition.py,sha256=jn8gbQ2I
|
|
29
29
|
solax_py_library/smart_scene/core/service/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
30
30
|
solax_py_library/smart_scene/core/service/smart_scene_service.py,sha256=wbC4Y0NK7vQRgJXrHCptjlb7r_C5PHLEHyGU1oaFNjw,15704
|
31
31
|
solax_py_library/smart_scene/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
32
|
-
solax_py_library/smart_scene/exceptions/price.py,sha256=
|
33
|
-
solax_py_library/smart_scene/exceptions/smart_scene.py,sha256=
|
32
|
+
solax_py_library/smart_scene/exceptions/price.py,sha256=3bnY6JzeEskUoXVzEs8bpg6hQzgbinBKY4GP4hBITWU,152
|
33
|
+
solax_py_library/smart_scene/exceptions/smart_scene.py,sha256=lIwzjdpvtrAub4lyTQRD3h2sM95vF6gpUy3Nmq1w1k0,1778
|
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=rxNsmXxcIDJmmrxMkC6H6f2syNruLMQGRZ23j5hPLuc,5607
|
@@ -73,6 +73,6 @@ solax_py_library/utils/cloud_client.py,sha256=5dZrc5fzrNFSXqTPZd7oHt-Y9Jj6RCigB7
|
|
73
73
|
solax_py_library/utils/common.py,sha256=bfnZcX9uM-PjJrYAFv1UMmZgt6bGR7MaOd7jRPNHGxw,1238
|
74
74
|
solax_py_library/utils/struct_util.py,sha256=4SKx5IyAke88PGHPHDK3OEDtyGHdapGoQ1BnGR0F2ts,913
|
75
75
|
solax_py_library/utils/time_util.py,sha256=bY5kj9dmyOuLEQ6uYGQK7jU7y1RMiHZgevEKnkcQcSU,1461
|
76
|
-
solax_py_library-1.0.0.
|
77
|
-
solax_py_library-1.0.0.
|
78
|
-
solax_py_library-1.0.0.
|
76
|
+
solax_py_library-1.0.0.2507.dist-info/METADATA,sha256=QFXm7_nZgxPq1nYNqz-sRWxbuSCBSCMgwFdZkRqtQEc,1827
|
77
|
+
solax_py_library-1.0.0.2507.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
78
|
+
solax_py_library-1.0.0.2507.dist-info/RECORD,,
|
File without changes
|