simo 2.0.40__py3-none-any.whl → 2.0.41__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/generic/__pycache__/controllers.cpython-38.pyc +0 -0
- simo/generic/controllers.py +3 -3
- {simo-2.0.40.dist-info → simo-2.0.41.dist-info}/METADATA +1 -1
- {simo-2.0.40.dist-info → simo-2.0.41.dist-info}/RECORD +7 -7
- {simo-2.0.40.dist-info → simo-2.0.41.dist-info}/LICENSE.md +0 -0
- {simo-2.0.40.dist-info → simo-2.0.41.dist-info}/WHEEL +0 -0
- {simo-2.0.40.dist-info → simo-2.0.41.dist-info}/top_level.txt +0 -0
|
Binary file
|
simo/generic/controllers.py
CHANGED
|
@@ -108,7 +108,7 @@ class PresenceLighting(Script):
|
|
|
108
108
|
# script specific variables
|
|
109
109
|
sensors = {}
|
|
110
110
|
light_org_values = {}
|
|
111
|
-
is_on =
|
|
111
|
+
is_on = False
|
|
112
112
|
turn_off_task = None
|
|
113
113
|
|
|
114
114
|
def _run(self):
|
|
@@ -130,7 +130,7 @@ class PresenceLighting(Script):
|
|
|
130
130
|
self.sensors[sensor.id] = sensor
|
|
131
131
|
|
|
132
132
|
presence_values = [s.value for id, s in self.sensors.items()]
|
|
133
|
-
if self.component.config.get('act_on', 0):
|
|
133
|
+
if self.component.config.get('act_on', 0) == 0:
|
|
134
134
|
must_on = any(presence_values)
|
|
135
135
|
else:
|
|
136
136
|
must_on = all(presence_values)
|
|
@@ -173,7 +173,7 @@ class PresenceLighting(Script):
|
|
|
173
173
|
comp.controller.send(self.component.config['on_value'])
|
|
174
174
|
return
|
|
175
175
|
|
|
176
|
-
if self.is_on
|
|
176
|
+
if self.is_on:
|
|
177
177
|
if not additional_conditions_met:
|
|
178
178
|
return self._turn_it_off()
|
|
179
179
|
if not any(presence_values):
|
|
@@ -10287,7 +10287,7 @@ simo/fleet/migrations/__pycache__/__init__.cpython-38.pyc,sha256=5k1KW0jeSDzw6Rn
|
|
|
10287
10287
|
simo/generic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10288
10288
|
simo/generic/app_widgets.py,sha256=E_pnpA1hxMIhenRCrHoQ5cik06jm2BAHCkl_eo-OudU,1264
|
|
10289
10289
|
simo/generic/base_types.py,sha256=djymox_boXTHX1BTTCLXrCH7ED-uAsV_idhaDOc3OLI,409
|
|
10290
|
-
simo/generic/controllers.py,sha256=
|
|
10290
|
+
simo/generic/controllers.py,sha256=0XwPUlhjPKLKGhcZ5cqnw9BWGLA8xHfvhfwLhw1Kip0,56020
|
|
10291
10291
|
simo/generic/forms.py,sha256=sxNl_iAgZJ5cCDcwgK0m4S7fs-O8RJutoiFeC1w_DlQ,29522
|
|
10292
10292
|
simo/generic/gateways.py,sha256=dZQPzO23UbW9q4dEB9fqgt9Meg8mX94euXnRvfwxusY,18004
|
|
10293
10293
|
simo/generic/models.py,sha256=92TACMhJHadAg0TT9GnARO_R3_Sl6i-GGjhG_x7YdFI,7391
|
|
@@ -10296,7 +10296,7 @@ simo/generic/socket_consumers.py,sha256=NfTQGYtVAc864IoogZRxf_0xpDPM0eMCWn0SlKA5
|
|
|
10296
10296
|
simo/generic/__pycache__/__init__.cpython-38.pyc,sha256=mLu54WS9KIl-pHwVCBKpsDFIlOqml--JsOVzAUHg6cU,161
|
|
10297
10297
|
simo/generic/__pycache__/app_widgets.cpython-38.pyc,sha256=0IoKRG9n1tkNRRkrqAeOQwWBPd_33u98JBcVtMVVCio,2374
|
|
10298
10298
|
simo/generic/__pycache__/base_types.cpython-38.pyc,sha256=ptw6axyAqemZA35oa6vzr7EihzvbhW9w7Y-G6kfDedU,555
|
|
10299
|
-
simo/generic/__pycache__/controllers.cpython-38.pyc,sha256=
|
|
10299
|
+
simo/generic/__pycache__/controllers.cpython-38.pyc,sha256=2lEaWu6jNLSQtln6a0LzS8_pZWeCTP6gR0sW6D-Yv7k,35581
|
|
10300
10300
|
simo/generic/__pycache__/forms.cpython-38.pyc,sha256=g4N2Zcarce0dMovJZt3TQHAhKWA1W3k2nurBg1NqHaY,21297
|
|
10301
10301
|
simo/generic/__pycache__/gateways.cpython-38.pyc,sha256=B35GiB4wBRzvd91ugL89Z3vYADiLiERP0T-21CnLqKc,13324
|
|
10302
10302
|
simo/generic/__pycache__/models.cpython-38.pyc,sha256=PzlZsM1jxo3FVb7QDm3bny8UFwTsGrMQe4mj4tJ06eQ,5675
|
|
@@ -10468,8 +10468,8 @@ simo/users/templates/invitations/expired_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCe
|
|
|
10468
10468
|
simo/users/templates/invitations/expired_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10469
10469
|
simo/users/templates/invitations/taken_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10470
10470
|
simo/users/templates/invitations/taken_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10471
|
-
simo-2.0.
|
|
10472
|
-
simo-2.0.
|
|
10473
|
-
simo-2.0.
|
|
10474
|
-
simo-2.0.
|
|
10475
|
-
simo-2.0.
|
|
10471
|
+
simo-2.0.41.dist-info/LICENSE.md,sha256=M7wm1EmMGDtwPRdg7kW4d00h1uAXjKOT3HFScYQMeiE,34916
|
|
10472
|
+
simo-2.0.41.dist-info/METADATA,sha256=vfjuW3h02mTkFFo5QdAZOytvcNrA2fRUA3ZI9aaHRu0,1730
|
|
10473
|
+
simo-2.0.41.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
10474
|
+
simo-2.0.41.dist-info/top_level.txt,sha256=GmS1hrAbpVqn9OWZh6UX82eIOdRLgYA82RG9fe8v4Rs,5
|
|
10475
|
+
simo-2.0.41.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|