simo 2.7.17__py3-none-any.whl → 2.7.19__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.
Potentially problematic release.
This version of simo might be problematic. Click here for more details.
- simo/automation/__pycache__/gateways.cpython-312.pyc +0 -0
- simo/automation/__pycache__/models.cpython-312.pyc +0 -0
- simo/automation/gateways.py +10 -3
- simo/automation/models.py +3 -2
- simo/core/__pycache__/controllers.cpython-312.pyc +0 -0
- simo/core/controllers.py +6 -0
- {simo-2.7.17.dist-info → simo-2.7.19.dist-info}/METADATA +1 -1
- {simo-2.7.17.dist-info → simo-2.7.19.dist-info}/RECORD +12 -12
- {simo-2.7.17.dist-info → simo-2.7.19.dist-info}/WHEEL +1 -1
- {simo-2.7.17.dist-info → simo-2.7.19.dist-info}/LICENSE.md +0 -0
- {simo-2.7.17.dist-info → simo-2.7.19.dist-info}/entry_points.txt +0 -0
- {simo-2.7.17.dist-info → simo-2.7.19.dist-info}/top_level.txt +0 -0
|
Binary file
|
|
Binary file
|
simo/automation/gateways.py
CHANGED
|
@@ -350,15 +350,22 @@ class AutomationsGatewayHandler(GatesHandler, BaseObjectCommandsGatewayHandler):
|
|
|
350
350
|
print("START SCRIPT %s" % str(component))
|
|
351
351
|
if component.id in self.running_scripts:
|
|
352
352
|
if component.value in ('finished', 'error', 'stopped'):
|
|
353
|
-
|
|
354
|
-
|
|
353
|
+
try:
|
|
354
|
+
self.running_scripts[component.id].kill()
|
|
355
|
+
except:
|
|
356
|
+
pass
|
|
357
|
+
self.running_scripts.pop(component.id, None)
|
|
355
358
|
elif component.id not in self.terminating_scripts \
|
|
356
359
|
and self.running_scripts[component.id].is_alive():
|
|
357
360
|
if component.value != 'running':
|
|
358
361
|
component.value = 'running'
|
|
359
362
|
component.save()
|
|
360
363
|
return
|
|
361
|
-
|
|
364
|
+
else:
|
|
365
|
+
try:
|
|
366
|
+
self.running_scripts[component.id].kill()
|
|
367
|
+
except:
|
|
368
|
+
pass
|
|
362
369
|
|
|
363
370
|
self.running_scripts[component.id] = ScriptRunHandler(
|
|
364
371
|
component.id, multiprocessing.Event(),
|
simo/automation/models.py
CHANGED
|
@@ -15,8 +15,9 @@ def post_script_change(sender, instance, created, **kwargs):
|
|
|
15
15
|
return
|
|
16
16
|
|
|
17
17
|
def post_update():
|
|
18
|
-
instance.
|
|
19
|
-
|
|
18
|
+
if instance.value == 'running':
|
|
19
|
+
instance.controller.stop()
|
|
20
|
+
if instance.config.get('autostart'):
|
|
20
21
|
time.sleep(2)
|
|
21
22
|
instance.controller.start()
|
|
22
23
|
|
|
Binary file
|
simo/core/controllers.py
CHANGED
|
@@ -509,6 +509,12 @@ class MultiSensor(ControllerBase):
|
|
|
509
509
|
return vectors
|
|
510
510
|
|
|
511
511
|
|
|
512
|
+
def get_val(self, param):
|
|
513
|
+
for item in self.component.value:
|
|
514
|
+
if item[0] == param:
|
|
515
|
+
return item[1]
|
|
516
|
+
|
|
517
|
+
|
|
512
518
|
class BinarySensor(ControllerBase):
|
|
513
519
|
name = _("Binary sensor")
|
|
514
520
|
base_type = 'binary-sensor'
|
|
@@ -21,9 +21,9 @@ simo/automation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
21
21
|
simo/automation/app_widgets.py,sha256=gaqImMZjuMHm7nIb9a4D-Y3qipz_WhSPAHXcwGx4Uzs,199
|
|
22
22
|
simo/automation/controllers.py,sha256=Ow8xG9hkdyMRZbrNPX5uZloYM9jZqa9mgCh4k6FeoJw,11492
|
|
23
23
|
simo/automation/forms.py,sha256=UWnkxw8pILPK0smRPTo4SLgsZl78zOySx7JIc30Bgtk,10228
|
|
24
|
-
simo/automation/gateways.py,sha256=
|
|
24
|
+
simo/automation/gateways.py,sha256=MAzv-i8BemhqfNY2NTYYlyCGPfctyNh4_dXyIZYJRSE,15848
|
|
25
25
|
simo/automation/helpers.py,sha256=iP-fxxB8HsFQy3k2CjFubu86aMqvWgmh-p24DiyOrek,4330
|
|
26
|
-
simo/automation/models.py,sha256=
|
|
26
|
+
simo/automation/models.py,sha256=zt-jkzyq5ddqGT864OkJzCsvov2vZ0nO4ez3hAeZkXg,934
|
|
27
27
|
simo/automation/serializers.py,sha256=PjyFrjdPK1mBsgbNhyqMi9SWzcymqTa742ipy0LhAN4,1996
|
|
28
28
|
simo/automation/state.py,sha256=aZZvNBae7unnux_zGHCIWCV2z47hVJc-DIL72Hqfkeo,600
|
|
29
29
|
simo/automation/__pycache__/__init__.cpython-312.pyc,sha256=rIs1rkBbUhjXjbUffmq2-tb7XbAY0JkA83xXPoByTwU,170
|
|
@@ -34,11 +34,11 @@ simo/automation/__pycache__/controllers.cpython-312.pyc,sha256=w2yAFvk-Fh1MZha7J
|
|
|
34
34
|
simo/automation/__pycache__/controllers.cpython-38.pyc,sha256=CL-0Tq9B4-E36fYfWT1XEBTq1dkq1W8003f6MrBnQU0,8391
|
|
35
35
|
simo/automation/__pycache__/forms.cpython-312.pyc,sha256=63rU0rWZk-Rz5qoMZiXl743WPc9NVm5d8bSd8w52T4E,12347
|
|
36
36
|
simo/automation/__pycache__/forms.cpython-38.pyc,sha256=cpA5hA2Iz3JsPC0Dq01ki1I7S9c5DKRcXveHApI1dJo,7772
|
|
37
|
-
simo/automation/__pycache__/gateways.cpython-312.pyc,sha256=
|
|
37
|
+
simo/automation/__pycache__/gateways.cpython-312.pyc,sha256=j4bG9KqBcCB8JD59frTl9VtP8n04mUPF_bd0vInDZfs,22223
|
|
38
38
|
simo/automation/__pycache__/gateways.cpython-38.pyc,sha256=nHujqChMCqqxHbZezP3MisavjKDhczqzFGurO10h-lc,11113
|
|
39
39
|
simo/automation/__pycache__/helpers.cpython-312.pyc,sha256=aDFtzBE72szi4gzVxK_NiAEC__wCmdztw0UKu2lVU58,5853
|
|
40
40
|
simo/automation/__pycache__/helpers.cpython-38.pyc,sha256=fNjSyn4Mfq7-JQx-bdsnj-rSxgu20dVJ9-5ZEMT6yiM,3627
|
|
41
|
-
simo/automation/__pycache__/models.cpython-312.pyc,sha256=
|
|
41
|
+
simo/automation/__pycache__/models.cpython-312.pyc,sha256=yGnRFAG5Py3-OsPxEjACM0WNWt6Eo9wsHeUGL3uUF8M,1789
|
|
42
42
|
simo/automation/__pycache__/models.cpython-38.pyc,sha256=VeQNAygVr0AXPlF5LEYk90Tq8zuCVPfsA2r1NBjrkxU,1230
|
|
43
43
|
simo/automation/__pycache__/serializers.cpython-312.pyc,sha256=Y68epVxWVtIRtED--24LOf5PIDHXthpVweAYpqE4X6U,4314
|
|
44
44
|
simo/automation/__pycache__/serializers.cpython-38.pyc,sha256=9Te21FW5-Tki1a-tq3gt0rme0afBA8o-7V249b4muFk,3405
|
|
@@ -97,7 +97,7 @@ simo/core/auto_urls.py,sha256=FqKhH0fF7cGO6P2YrjblwG4JA2UkVXj3lreJUOB2Jq4,1194
|
|
|
97
97
|
simo/core/autocomplete_views.py,sha256=x3MKOZvXYS3xVQ-V1S7Liv_U5bxr-uc0gePa85wv5nA,4561
|
|
98
98
|
simo/core/base_types.py,sha256=WypW8hTfzveuTQtruGjLYAGQZIuczxTlW-SdRk3iQug,666
|
|
99
99
|
simo/core/context.py,sha256=LKw1I4iIRnlnzoTCuSLLqDX7crHdBnMo3hjqYvVmzFc,1557
|
|
100
|
-
simo/core/controllers.py,sha256=
|
|
100
|
+
simo/core/controllers.py,sha256=nJZNjltis0DIlwb0Yn84MllXsPxo2CMhcAmtGPKnhBg,37550
|
|
101
101
|
simo/core/dynamic_settings.py,sha256=bUs58XEZOCIEhg1TigR3LmYggli13KMryBZ9pC7ugAQ,1872
|
|
102
102
|
simo/core/events.py,sha256=1_KIk5pJqdLPRQlCQ9xSyALst2Cn0b2lAEAJ3QjwIjE,4801
|
|
103
103
|
simo/core/filters.py,sha256=6wbn8C2WvKTTjtfMwwLBp2Fib1V0-DMpS4iqJd6jJQo,2540
|
|
@@ -141,7 +141,7 @@ simo/core/__pycache__/base_types.cpython-312.pyc,sha256=Lnq2NL9B5hfwJARJYC447Rdv
|
|
|
141
141
|
simo/core/__pycache__/base_types.cpython-38.pyc,sha256=CX-qlF7CefRi_mCE954wYa9rUFR88mOl6g7fybDRu7g,803
|
|
142
142
|
simo/core/__pycache__/context.cpython-312.pyc,sha256=8rsN2Er-Sx3rrVmO0Gk4cem3euGh0kTELXj667GGZ5E,2193
|
|
143
143
|
simo/core/__pycache__/context.cpython-38.pyc,sha256=NlTHt2GvXxA21AhBkeyOLfRFUuXw7wmwqyNhhcDl2cw,1373
|
|
144
|
-
simo/core/__pycache__/controllers.cpython-312.pyc,sha256=
|
|
144
|
+
simo/core/__pycache__/controllers.cpython-312.pyc,sha256=z7zxtaI-nD3F94qct1_j7PiIJZEs1gGdv_nRn3D8iRM,52921
|
|
145
145
|
simo/core/__pycache__/controllers.cpython-38.pyc,sha256=LtrQQ8egOIOuQbAckeM-z8OfbzS4W8VQ3vBnryAm3iU,32086
|
|
146
146
|
simo/core/__pycache__/dynamic_settings.cpython-312.pyc,sha256=WUZ6XF4kZb6zPf541PkKmiQaBIw-r5C6F3EUUZiTEnE,3331
|
|
147
147
|
simo/core/__pycache__/dynamic_settings.cpython-38.pyc,sha256=wGpnscX1DxFpRl54MQURhjz2aD3NJohSzw9JCFnzh2Y,2384
|
|
@@ -10924,9 +10924,9 @@ simo/users/templates/invitations/expired_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCe
|
|
|
10924
10924
|
simo/users/templates/invitations/expired_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10925
10925
|
simo/users/templates/invitations/taken_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10926
10926
|
simo/users/templates/invitations/taken_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10927
|
-
simo-2.7.
|
|
10928
|
-
simo-2.7.
|
|
10929
|
-
simo-2.7.
|
|
10930
|
-
simo-2.7.
|
|
10931
|
-
simo-2.7.
|
|
10932
|
-
simo-2.7.
|
|
10927
|
+
simo-2.7.19.dist-info/LICENSE.md,sha256=M7wm1EmMGDtwPRdg7kW4d00h1uAXjKOT3HFScYQMeiE,34916
|
|
10928
|
+
simo-2.7.19.dist-info/METADATA,sha256=WpsPW7Q5XwQTjshoHvQuwLUip5VdvIa4JBLhqUXXVBE,2009
|
|
10929
|
+
simo-2.7.19.dist-info/WHEEL,sha256=A3WOREP4zgxI0fKrHUG8DC8013e3dK3n7a6HDbcEIwE,91
|
|
10930
|
+
simo-2.7.19.dist-info/entry_points.txt,sha256=S9PwnUYmTSW7681GKDCxUbL0leRJIaRk6fDQIKgbZBA,135
|
|
10931
|
+
simo-2.7.19.dist-info/top_level.txt,sha256=GmS1hrAbpVqn9OWZh6UX82eIOdRLgYA82RG9fe8v4Rs,5
|
|
10932
|
+
simo-2.7.19.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|