simo 2.5.34__py3-none-any.whl → 2.5.35__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/core/forms.py +1 -1
- simo/core/serializers.py +0 -1
- simo/fleet/socket_consumers.py +12 -4
- {simo-2.5.34.dist-info → simo-2.5.35.dist-info}/METADATA +1 -1
- {simo-2.5.34.dist-info → simo-2.5.35.dist-info}/RECORD +9 -9
- {simo-2.5.34.dist-info → simo-2.5.35.dist-info}/LICENSE.md +0 -0
- {simo-2.5.34.dist-info → simo-2.5.35.dist-info}/WHEEL +0 -0
- {simo-2.5.34.dist-info → simo-2.5.35.dist-info}/entry_points.txt +0 -0
- {simo-2.5.34.dist-info → simo-2.5.35.dist-info}/top_level.txt +0 -0
simo/core/forms.py
CHANGED
|
@@ -298,7 +298,7 @@ class ComponentAdminForm(forms.ModelForm):
|
|
|
298
298
|
'alarm_category', 'arm_status',
|
|
299
299
|
'notes'
|
|
300
300
|
)
|
|
301
|
-
base_fields = ['id', 'gateway', 'base_type', 'info', 'name']
|
|
301
|
+
base_fields = ['id', 'gateway', 'base_type', 'controller_uid', 'info', 'name']
|
|
302
302
|
if cls.has_icon:
|
|
303
303
|
base_fields.append('icon')
|
|
304
304
|
|
simo/core/serializers.py
CHANGED
|
@@ -87,7 +87,6 @@ class ObjectSerializerMethodField(serializers.SerializerMethodField):
|
|
|
87
87
|
class FormsetPrimaryKeyRelatedField(PrimaryKeyRelatedField):
|
|
88
88
|
|
|
89
89
|
def get_attribute(self, instance):
|
|
90
|
-
print("f{instance} SOURCE FORMSET ATTRIBUTES: ", self.source_attrs)
|
|
91
90
|
return self.queryset.model.objects.filter(
|
|
92
91
|
pk=instance.get(self.source_attrs[0], -1)
|
|
93
92
|
).first()
|
simo/fleet/socket_consumers.py
CHANGED
|
@@ -392,10 +392,18 @@ class FleetConsumer(AsyncWebsocketConsumer):
|
|
|
392
392
|
value=f"ttlock-{component.id}-{data.get('actor')}",
|
|
393
393
|
).first()
|
|
394
394
|
component.change_init_fingerprint = fingerprint
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
395
|
+
try:
|
|
396
|
+
alive = bool(data.get('alive', True))
|
|
397
|
+
error_msg = None
|
|
398
|
+
if not alive:
|
|
399
|
+
error_msg = data.get('error_msg')
|
|
400
|
+
component.controller._receive_from_device(
|
|
401
|
+
data['val'], alive,
|
|
402
|
+
data.get('battery_level'), error_msg
|
|
403
|
+
)
|
|
404
|
+
except Exception as e:
|
|
405
|
+
print(traceback.format_exc(),
|
|
406
|
+
file=sys.stderr)
|
|
399
407
|
await sync_to_async(
|
|
400
408
|
receive_val, thread_sensitive=True
|
|
401
409
|
)(data)
|
|
@@ -47,7 +47,7 @@ simo/core/dynamic_settings.py,sha256=bUs58XEZOCIEhg1TigR3LmYggli13KMryBZ9pC7ugAQ
|
|
|
47
47
|
simo/core/events.py,sha256=1_KIk5pJqdLPRQlCQ9xSyALst2Cn0b2lAEAJ3QjwIjE,4801
|
|
48
48
|
simo/core/filters.py,sha256=ghtOZcrwNAkIyF5_G9Sn73NkiI71mXv0NhwCk4IyMIM,411
|
|
49
49
|
simo/core/form_fields.py,sha256=wowWocYgxkKBr0WYzpKn4UvH4ScnImus56Tg2G8OPBc,2274
|
|
50
|
-
simo/core/forms.py,sha256=
|
|
50
|
+
simo/core/forms.py,sha256=CCKypzX32-Mp8LpyO0ffiPcwIitaw0F03e8A9ZL0Mhw,21586
|
|
51
51
|
simo/core/gateways.py,sha256=m0eS3XjVe34Dge6xtoCq16kFWCKJcdQrT0JW0REqoq8,3715
|
|
52
52
|
simo/core/loggers.py,sha256=EBdq23gTQScVfQVH-xeP90-wII2DQFDjoROAW6ggUP4,1645
|
|
53
53
|
simo/core/managers.py,sha256=n-b3I4uXzfHKTeB1VMjSaMsDUxp8FegFJwnbV1IsWQ4,3019
|
|
@@ -55,7 +55,7 @@ simo/core/middleware.py,sha256=eUFf6iP-Snx_0TE3MoXsSwqrd5IjlukqZk2GQGStRCo,3385
|
|
|
55
55
|
simo/core/models.py,sha256=1eJRIxOYtzx7JOGSAyo75QBoTEaigxjsRXIFghDSz9k,22837
|
|
56
56
|
simo/core/permissions.py,sha256=INQPrUAIM3WXCvd7e6cmYytKaak8fMEn7VooX-fIds0,3002
|
|
57
57
|
simo/core/routing.py,sha256=X1_IHxyA-_Q7hw1udDoviVP4_FSBDl8GYETTC2zWTbY,499
|
|
58
|
-
simo/core/serializers.py,sha256=
|
|
58
|
+
simo/core/serializers.py,sha256=tY0pQWe_EtUHOOsYPqg89NH-0-Me76_mG1ppvxsMTHY,21816
|
|
59
59
|
simo/core/signal_receivers.py,sha256=2WfF3FI5ZmJM1S-oT_1w3TdnBUX6fjbI4Rpg-DKsuYA,8696
|
|
60
60
|
simo/core/socket_consumers.py,sha256=trRZvBGTJ7xIbfdmVvn7zoiWp_qssSkMZykDrI5YQyE,9783
|
|
61
61
|
simo/core/storage.py,sha256=_5igjaoWZAiExGWFEJMElxUw55DzJG1jqFty33xe8BE,342
|
|
@@ -10234,7 +10234,7 @@ simo/fleet/managers.py,sha256=ZNeHFSkF5kzsl9E1DCBevOW6kXJlD6kw0LU4B-JMOG8,828
|
|
|
10234
10234
|
simo/fleet/models.py,sha256=zPplx_v64nfKBmb-nCb74aCVtEeY3m3SjEy-VhbnydU,17511
|
|
10235
10235
|
simo/fleet/routing.py,sha256=cofGsVWXMfPDwsJ6HM88xxtRxHwERhJ48Xyxc8mxg5o,149
|
|
10236
10236
|
simo/fleet/serializers.py,sha256=X2M0DFKVaxM6JFGDsdg3S2nJlLIcBvbujidZdfxD88w,2169
|
|
10237
|
-
simo/fleet/socket_consumers.py,sha256=
|
|
10237
|
+
simo/fleet/socket_consumers.py,sha256=4hVSvFNq9Hi44R7JmaujFoEtgmH5YBST2cFYtIiMDRA,18840
|
|
10238
10238
|
simo/fleet/tasks.py,sha256=NX_opj-rbkK9eeQMeRNwHj_ZJ0LC4rYOZovMg9_r0kA,904
|
|
10239
10239
|
simo/fleet/utils.py,sha256=wNJvURzLP3-aho3D3rfg07N9kWCaMIw5gOsmeeO9Nlg,4740
|
|
10240
10240
|
simo/fleet/views.py,sha256=jT3GcGv_JEj3dqyfHH2whCnGqwT8YEAuFxRgIX4Dk9w,3237
|
|
@@ -10577,9 +10577,9 @@ simo/users/templates/invitations/expired_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCe
|
|
|
10577
10577
|
simo/users/templates/invitations/expired_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10578
10578
|
simo/users/templates/invitations/taken_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10579
10579
|
simo/users/templates/invitations/taken_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10580
|
-
simo-2.5.
|
|
10581
|
-
simo-2.5.
|
|
10582
|
-
simo-2.5.
|
|
10583
|
-
simo-2.5.
|
|
10584
|
-
simo-2.5.
|
|
10585
|
-
simo-2.5.
|
|
10580
|
+
simo-2.5.35.dist-info/LICENSE.md,sha256=M7wm1EmMGDtwPRdg7kW4d00h1uAXjKOT3HFScYQMeiE,34916
|
|
10581
|
+
simo-2.5.35.dist-info/METADATA,sha256=z4jsPZdEmlf2sIemyuwrU6TM9AF8s9O_ZgRR97xBPmk,1953
|
|
10582
|
+
simo-2.5.35.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
|
10583
|
+
simo-2.5.35.dist-info/entry_points.txt,sha256=S9PwnUYmTSW7681GKDCxUbL0leRJIaRk6fDQIKgbZBA,135
|
|
10584
|
+
simo-2.5.35.dist-info/top_level.txt,sha256=GmS1hrAbpVqn9OWZh6UX82eIOdRLgYA82RG9fe8v4Rs,5
|
|
10585
|
+
simo-2.5.35.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|