simo 2.0.31__py3-none-any.whl → 2.0.32__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/gateways.py CHANGED
@@ -263,7 +263,7 @@ class GenericGatewayHandler(BaseObjectCommandsGatewayHandler):
263
263
  ).filter(
264
264
  Q(config__autostart=True) |
265
265
  Q(value='error', config__keep_alive=True)
266
- ).disticnt():
266
+ ).distinct():
267
267
  self.start_script(script)
268
268
 
269
269
  for cam in Component.objects.filter(
@@ -332,8 +332,13 @@ class GenericGatewayHandler(BaseObjectCommandsGatewayHandler):
332
332
  component.save(update_fields=['value'])
333
333
  return
334
334
  if self.running_scripts[component.id].is_alive():
335
+ tz = pytz.timezone(component.zone.instance.timezone)
336
+ timezone.activate(tz)
335
337
  logger = get_component_logger(component)
336
- logger.log(logging.INFO, "-------STOP-------")
338
+ if stop_status == 'error':
339
+ logger.log(logging.INFO, "-------GATEWAY STOP-------")
340
+ else:
341
+ logger.log(logging.INFO, "-------STOP-------")
337
342
  self.running_scripts[component.id].terminate()
338
343
 
339
344
  def kill():
@@ -345,9 +350,10 @@ class GenericGatewayHandler(BaseObjectCommandsGatewayHandler):
345
350
  break
346
351
  time.sleep(0.1)
347
352
  if not terminated:
348
- logger.log(
349
- logging.INFO, "-------KILL!-------"
350
- )
353
+ if stop_status == 'error':
354
+ logger.log(logging.INFO, "-------GATEWAY KILL-------")
355
+ else:
356
+ logger.log(logging.INFO, "-------KILL!-------")
351
357
  self.running_scripts[component.id].kill()
352
358
 
353
359
  component.value = stop_status
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: simo
3
- Version: 2.0.31
3
+ Version: 2.0.32
4
4
  Summary: Smart Home on Steroids!
5
5
  Author-email: Simanas Venčkauskas <simanas@simo.io>
6
6
  Project-URL: Homepage, https://simo.io
@@ -10277,7 +10277,7 @@ simo/generic/app_widgets.py,sha256=E_pnpA1hxMIhenRCrHoQ5cik06jm2BAHCkl_eo-OudU,1
10277
10277
  simo/generic/base_types.py,sha256=djymox_boXTHX1BTTCLXrCH7ED-uAsV_idhaDOc3OLI,409
10278
10278
  simo/generic/controllers.py,sha256=WYuOUzDWvkYRaTvlbdGy_qmwp1o_ohqKDfV7OrOq2QU,52218
10279
10279
  simo/generic/forms.py,sha256=NPHNg_8BPTIJt-DR0-GkNWgVo9bE0_50PUWSnpIE4Dg,24262
10280
- simo/generic/gateways.py,sha256=Vw2r9wsIa86bs2nS-ExT31smpKnA19E0paiho7HeNX0,17390
10280
+ simo/generic/gateways.py,sha256=RcHubz3oyY_ysPLNPLRoyh8C6r-WfPzpD98OVkDvPPI,17731
10281
10281
  simo/generic/models.py,sha256=92TACMhJHadAg0TT9GnARO_R3_Sl6i-GGjhG_x7YdFI,7391
10282
10282
  simo/generic/routing.py,sha256=elQVZmgnPiieEuti4sJ7zITk1hlRxpgbotcutJJgC60,228
10283
10283
  simo/generic/socket_consumers.py,sha256=NfTQGYtVAc864IoogZRxf_0xpDPM0eMCWn0SlKA5P7Y,1751
@@ -10286,7 +10286,7 @@ simo/generic/__pycache__/app_widgets.cpython-38.pyc,sha256=0IoKRG9n1tkNRRkrqAeOQ
10286
10286
  simo/generic/__pycache__/base_types.cpython-38.pyc,sha256=ptw6axyAqemZA35oa6vzr7EihzvbhW9w7Y-G6kfDedU,555
10287
10287
  simo/generic/__pycache__/controllers.cpython-38.pyc,sha256=e0bvgyePgJbIs1omBq0TRPlVSKar2sK_JbUKqDRj7mY,33235
10288
10288
  simo/generic/__pycache__/forms.cpython-38.pyc,sha256=du8pawGkAyGP51Cb6uWgvVLx48JZKNkVCdOpRmqQFaA,17915
10289
- simo/generic/__pycache__/gateways.cpython-38.pyc,sha256=LcBnE4rzzBOpVP1oI2mHSoB4dtZ4wP_vL0Y-YzTBVRE,12786
10289
+ simo/generic/__pycache__/gateways.cpython-38.pyc,sha256=IbRdwj0oIUyyuR-AOlaPmEwKXr5utWf0LsLTN-HHSuI,12962
10290
10290
  simo/generic/__pycache__/models.cpython-38.pyc,sha256=PzlZsM1jxo3FVb7QDm3bny8UFwTsGrMQe4mj4tJ06eQ,5675
10291
10291
  simo/generic/__pycache__/routing.cpython-38.pyc,sha256=xtxTUTBTdivzFyA5Wh7k-hUj1WDO_FiRq6HYXdbr9Ks,382
10292
10292
  simo/generic/__pycache__/socket_consumers.cpython-38.pyc,sha256=piFHces0J9QuXu_CNBCQCYjoZEeoaxyVjLfJ9KaR8C8,1898
@@ -10456,8 +10456,8 @@ simo/users/templates/invitations/expired_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCe
10456
10456
  simo/users/templates/invitations/expired_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10457
10457
  simo/users/templates/invitations/taken_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10458
10458
  simo/users/templates/invitations/taken_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10459
- simo-2.0.31.dist-info/LICENSE.md,sha256=M7wm1EmMGDtwPRdg7kW4d00h1uAXjKOT3HFScYQMeiE,34916
10460
- simo-2.0.31.dist-info/METADATA,sha256=65C9h0Hq9Zg-Iob4o6DO_iM3KjIs6e2u5D5qoNdprYw,1730
10461
- simo-2.0.31.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
10462
- simo-2.0.31.dist-info/top_level.txt,sha256=GmS1hrAbpVqn9OWZh6UX82eIOdRLgYA82RG9fe8v4Rs,5
10463
- simo-2.0.31.dist-info/RECORD,,
10459
+ simo-2.0.32.dist-info/LICENSE.md,sha256=M7wm1EmMGDtwPRdg7kW4d00h1uAXjKOT3HFScYQMeiE,34916
10460
+ simo-2.0.32.dist-info/METADATA,sha256=z2RvhzDmB2eQsigSTU8ueR531aRvnhHR6AdMINLJucw,1730
10461
+ simo-2.0.32.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
10462
+ simo-2.0.32.dist-info/top_level.txt,sha256=GmS1hrAbpVqn9OWZh6UX82eIOdRLgYA82RG9fe8v4Rs,5
10463
+ simo-2.0.32.dist-info/RECORD,,
File without changes