solax-py-library 1.0.0.2519__py3-none-any.whl → 1.0.0.2520__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/exceptions/smart_scene.py +24 -23
- solax_py_library/smart_scene/types/action.py +1 -1
- {solax_py_library-1.0.0.2519.dist-info → solax_py_library-1.0.0.2520.dist-info}/METADATA +1 -1
- {solax_py_library-1.0.0.2519.dist-info → solax_py_library-1.0.0.2520.dist-info}/RECORD +5 -5
- {solax_py_library-1.0.0.2519.dist-info → solax_py_library-1.0.0.2520.dist-info}/WHEEL +0 -0
@@ -1,81 +1,82 @@
|
|
1
1
|
from solax_py_library.exception import SolaxBaseError
|
2
2
|
|
3
3
|
|
4
|
-
class
|
4
|
+
class MissParam(SolaxBaseError):
|
5
|
+
code = 0x2001
|
6
|
+
message = "smart_scene__miss_param"
|
7
|
+
|
8
|
+
|
9
|
+
class OnlyPositive(MissParam):
|
5
10
|
message = "smart_scene__only_positive"
|
6
11
|
|
7
12
|
|
8
|
-
class TimeRange(
|
13
|
+
class TimeRange(MissParam):
|
9
14
|
message = "smart_scene__time_range"
|
10
15
|
|
11
16
|
|
12
|
-
class IrradianceOnlyPositive(
|
17
|
+
class IrradianceOnlyPositive(MissParam):
|
13
18
|
message = "smart_scene__irradiance_only_positive"
|
14
19
|
|
15
20
|
|
16
|
-
class ExportLimitNum(
|
21
|
+
class ExportLimitNum(MissParam):
|
17
22
|
message = "smart_scene__export_limit_num"
|
18
23
|
|
19
24
|
|
20
|
-
class ExportLimitPercent(
|
25
|
+
class ExportLimitPercent(MissParam):
|
21
26
|
message = "smart_scene__export_limit_percent"
|
22
27
|
|
23
28
|
|
24
|
-
class ImportLimitNum(
|
29
|
+
class ImportLimitNum(MissParam):
|
25
30
|
message = "smart_scene__import_limit_num"
|
26
31
|
|
27
32
|
|
28
|
-
class ImportOnlyPositive(
|
33
|
+
class ImportOnlyPositive(MissParam):
|
29
34
|
message = "smart_scene__import_only_positive"
|
30
35
|
|
31
36
|
|
32
|
-
class SocLimit(
|
37
|
+
class SocLimit(MissParam):
|
33
38
|
message = "smart_scene__soc_limit"
|
34
39
|
|
35
40
|
|
36
|
-
class ActivePowerLimitNum(
|
41
|
+
class ActivePowerLimitNum(MissParam):
|
37
42
|
message = "smart_scene__active_power_limit_num"
|
38
43
|
|
39
44
|
|
40
|
-
class ReactivePowerLimitNum(
|
45
|
+
class ReactivePowerLimitNum(MissParam):
|
41
46
|
message = "smart_scene__reactive_power_limit_num"
|
42
47
|
|
43
48
|
|
44
|
-
class EnergyLimit(
|
49
|
+
class EnergyLimit(MissParam):
|
45
50
|
message = "smart_scene__energy_limit"
|
46
51
|
|
47
52
|
|
48
|
-
class PowerLimitNum(
|
53
|
+
class PowerLimitNum(MissParam):
|
49
54
|
message = "smart_scene__power_limit_num"
|
50
55
|
|
51
56
|
|
52
|
-
class BatteryPowerLimitNum(
|
57
|
+
class BatteryPowerLimitNum(MissParam):
|
53
58
|
message = "smart_scene__battery_power_limit_num"
|
54
59
|
|
55
60
|
|
56
|
-
class PvOnlyGe0(
|
61
|
+
class PvOnlyGe0(MissParam):
|
57
62
|
message = "smart_scene__pv_only_ge_0"
|
58
63
|
|
59
64
|
|
60
|
-
class MissParam
|
61
|
-
message = "smart_scene__miss_param"
|
62
|
-
|
63
|
-
|
64
|
-
class CountLimit(SolaxBaseError):
|
65
|
+
class CountLimit(MissParam):
|
65
66
|
message = "smart_scene__count_limit"
|
66
67
|
|
67
68
|
|
68
|
-
class NameLengthLimit(
|
69
|
+
class NameLengthLimit(MissParam):
|
69
70
|
message = "smart_scene__name_length_limit"
|
70
71
|
|
71
72
|
|
72
|
-
class UniqueLimit(
|
73
|
+
class UniqueLimit(MissParam):
|
73
74
|
message = "smart_scene__unique_limit"
|
74
75
|
|
75
76
|
|
76
|
-
class ElectricityPriceFailure(
|
77
|
+
class ElectricityPriceFailure(MissParam):
|
77
78
|
message = "cloud__electricity_price_failure"
|
78
79
|
|
79
80
|
|
80
|
-
class WeatherFailure(
|
81
|
+
class WeatherFailure(MissParam):
|
81
82
|
message = "cloud__weather_failure"
|
@@ -38,7 +38,7 @@ class SystemActionChildData(ActionChildData):
|
|
38
38
|
|
39
39
|
class SystemActionItemData(BaseModel):
|
40
40
|
childType: SystemActionType
|
41
|
-
childData:
|
41
|
+
childData: SystemActionChildData
|
42
42
|
|
43
43
|
def to_text(self, lang, cabinet_type):
|
44
44
|
if self.childType == SystemActionType.systemSwitch:
|
@@ -30,10 +30,10 @@ solax_py_library/smart_scene/core/service/__init__.py,sha256=wWzHSN2XaHnI-TNtCJW
|
|
30
30
|
solax_py_library/smart_scene/core/service/runner.py,sha256=SwQ6jb5yFPcyHyfU-THyGDjPEMcNFUOHkvVYA9wB1EE,6201
|
31
31
|
solax_py_library/smart_scene/exceptions/__init__.py,sha256=0hDgr70fFLQB14uorVCwbBhl1yQmZ-uBYGH5XtGm_dg,147
|
32
32
|
solax_py_library/smart_scene/exceptions/price.py,sha256=3bnY6JzeEskUoXVzEs8bpg6hQzgbinBKY4GP4hBITWU,152
|
33
|
-
solax_py_library/smart_scene/exceptions/smart_scene.py,sha256=
|
33
|
+
solax_py_library/smart_scene/exceptions/smart_scene.py,sha256=69khvoFm1Eki4NBT45gVnsyWubEzF7dqnhU-unqT20g,1701
|
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
|
-
solax_py_library/smart_scene/types/action.py,sha256=
|
36
|
+
solax_py_library/smart_scene/types/action.py,sha256=cYICnxLfLRWFAlOGWpS2HBw-PyaB6TNlNuEmSsme26k,5723
|
37
37
|
solax_py_library/smart_scene/types/condition.py,sha256=xJGv4Xv-kRzMYzlj6y6Q3eeMSVLwoOY9V-denlyicik,9552
|
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
|
@@ -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.
|
79
|
-
solax_py_library-1.0.0.
|
80
|
-
solax_py_library-1.0.0.
|
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,,
|
File without changes
|