simo 2.8.1__py3-none-any.whl → 2.8.2__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/controllers.py +4 -3
- simo/users/api.py +4 -4
- {simo-2.8.1.dist-info → simo-2.8.2.dist-info}/METADATA +1 -1
- {simo-2.8.1.dist-info → simo-2.8.2.dist-info}/RECORD +8 -8
- {simo-2.8.1.dist-info → simo-2.8.2.dist-info}/LICENSE.md +0 -0
- {simo-2.8.1.dist-info → simo-2.8.2.dist-info}/WHEEL +0 -0
- {simo-2.8.1.dist-info → simo-2.8.2.dist-info}/entry_points.txt +0 -0
- {simo-2.8.1.dist-info → simo-2.8.2.dist-info}/top_level.txt +0 -0
simo/automation/controllers.py
CHANGED
|
@@ -297,10 +297,11 @@ class PresenceLighting(Script):
|
|
|
297
297
|
).first()
|
|
298
298
|
if not comp or not comp.controller:
|
|
299
299
|
continue
|
|
300
|
-
|
|
301
|
-
|
|
300
|
+
try:
|
|
301
|
+
off_val = int(light_params.get('off_value', 0))
|
|
302
|
+
except:
|
|
302
303
|
off_val = 0
|
|
303
|
-
|
|
304
|
+
if off_val != 0:
|
|
304
305
|
off_val = self.light_org_values.get(comp.id, 0)
|
|
305
306
|
print(f"Send {off_val} to {comp}!")
|
|
306
307
|
if comp.value != off_val:
|
simo/users/api.py
CHANGED
|
@@ -194,10 +194,10 @@ class UserDeviceReport(InstanceMixin, viewsets.GenericViewSet):
|
|
|
194
194
|
user_device.users.add(request.user)
|
|
195
195
|
|
|
196
196
|
log_datetime = timezone.now()
|
|
197
|
-
if request.data.get('timestamp'):
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
197
|
+
# if request.data.get('timestamp'):
|
|
198
|
+
# log_datetime = datetime.datetime.fromtimestamp(
|
|
199
|
+
# int(float(request.GET['timestamp'])), pytz.utc
|
|
200
|
+
# )
|
|
201
201
|
|
|
202
202
|
relay = None
|
|
203
203
|
if request.META.get('HTTP_HOST', '').endswith('.simo.io'):
|
|
@@ -19,7 +19,7 @@ simo/__pycache__/urls.cpython-38.pyc,sha256=u0x6EqT8S1YfDOSPgbI8Kf-RDlveY9OV-EDX
|
|
|
19
19
|
simo/__pycache__/wsgi.cpython-38.pyc,sha256=TpRxO7VM_ql31hbKphVdanydC5RI1nHB4l0QA2pdWxo,322
|
|
20
20
|
simo/automation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
21
|
simo/automation/app_widgets.py,sha256=gaqImMZjuMHm7nIb9a4D-Y3qipz_WhSPAHXcwGx4Uzs,199
|
|
22
|
-
simo/automation/controllers.py,sha256=
|
|
22
|
+
simo/automation/controllers.py,sha256=66aGjlfgigcePXiLmDkbVrxbm-Z26klMKIiOvaMH71k,11545
|
|
23
23
|
simo/automation/forms.py,sha256=UWnkxw8pILPK0smRPTo4SLgsZl78zOySx7JIc30Bgtk,10228
|
|
24
24
|
simo/automation/gateways.py,sha256=MAzv-i8BemhqfNY2NTYYlyCGPfctyNh4_dXyIZYJRSE,15848
|
|
25
25
|
simo/automation/helpers.py,sha256=iP-fxxB8HsFQy3k2CjFubu86aMqvWgmh-p24DiyOrek,4330
|
|
@@ -10734,7 +10734,7 @@ simo/notifications/migrations/__pycache__/__init__.cpython-312.pyc,sha256=YMFc4Q
|
|
|
10734
10734
|
simo/notifications/migrations/__pycache__/__init__.cpython-38.pyc,sha256=YMBRHVon2nWDtIUbghckjnC12sIg_ykPWhV5aM0tto4,178
|
|
10735
10735
|
simo/users/__init__.py,sha256=6a7uBpCWB_DR7p54rbHusc0xvi1qfT1ZCCQGb6TiBh8,52
|
|
10736
10736
|
simo/users/admin.py,sha256=2J_ZwrwAPw03Stb6msx5GvRpGCsDSC39RPpYBLGf8UY,7441
|
|
10737
|
-
simo/users/api.py,sha256=
|
|
10737
|
+
simo/users/api.py,sha256=hOLwJhA5Ik8UbW0Qmp2Vl7tB8_uDHnP4EZq-OSaknyw,13218
|
|
10738
10738
|
simo/users/apps.py,sha256=cq0A8-U1HALEwev0TicgFhr4CAu7Icz8rwq0HfOaL4E,207
|
|
10739
10739
|
simo/users/auth_backends.py,sha256=KIw2AdjCUKfm_7Lql6aC4qdE6JznP0ECIMA5MVMLeiM,4251
|
|
10740
10740
|
simo/users/auto_urls.py,sha256=RSUW3ai5LbMTknS8M7M5aOnG_YlFOVQrnNVNH-fkwlg,357
|
|
@@ -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.8.
|
|
10928
|
-
simo-2.8.
|
|
10929
|
-
simo-2.8.
|
|
10930
|
-
simo-2.8.
|
|
10931
|
-
simo-2.8.
|
|
10932
|
-
simo-2.8.
|
|
10927
|
+
simo-2.8.2.dist-info/LICENSE.md,sha256=M7wm1EmMGDtwPRdg7kW4d00h1uAXjKOT3HFScYQMeiE,34916
|
|
10928
|
+
simo-2.8.2.dist-info/METADATA,sha256=AhDqWH1SoeS6j6V0KlUk-QMeuzbVjZouP_a_fJRr_ZI,2008
|
|
10929
|
+
simo-2.8.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
10930
|
+
simo-2.8.2.dist-info/entry_points.txt,sha256=S9PwnUYmTSW7681GKDCxUbL0leRJIaRk6fDQIKgbZBA,135
|
|
10931
|
+
simo-2.8.2.dist-info/top_level.txt,sha256=GmS1hrAbpVqn9OWZh6UX82eIOdRLgYA82RG9fe8v4Rs,5
|
|
10932
|
+
simo-2.8.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|