simo 2.2.6__py3-none-any.whl → 2.2.8__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/api.py CHANGED
@@ -174,7 +174,9 @@ def get_components_queryset(instance, user):
174
174
  if cp.read:
175
175
  c_ids.add(cp.component.id)
176
176
 
177
- return qs.filter(id__in=c_ids)
177
+ return qs.filter(id__in=c_ids).select_related(
178
+ 'zone', 'category', 'icon'
179
+ ).prefetch_related('slaves')
178
180
 
179
181
 
180
182
  class ComponentViewSet(
simo/fleet/controllers.py CHANGED
@@ -158,7 +158,8 @@ class BaseClimateSensor(FleeDeviceMixin, BasicSensorMixin, BaseMultiSensor):
158
158
  def __init__(self, *args, **kwargs):
159
159
  super().__init__(*args, **kwargs)
160
160
  self.sys_temp_units = 'C'
161
- if self.component.zone.instance.units_of_measure == 'imperial':
161
+ if hasattr(self.component, 'zone') \
162
+ and self.component.zone.instance.units_of_measure == 'imperial':
162
163
  self.sys_temp_units = 'F'
163
164
 
164
165
  @property
simo/fleet/forms.py CHANGED
@@ -515,7 +515,7 @@ class MPC9808SensorConfigForm(ColonelComponentForm):
515
515
  coerce=int, initial=24,
516
516
  choices=(
517
517
  (24, "Default"),
518
- (25, "AD0"), (25, "AD1"), (28, "AD2"),
518
+ (25, "AD0"), (26, "AD1"), (28, "AD2"),
519
519
  (27, "AD0 + AD1"), (29, "AD0 + AD2"), (30, "AD1 + AD2"),
520
520
  (31, "AD0 + AD1 + AD2")
521
521
  ),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: simo
3
- Version: 2.2.6
3
+ Version: 2.2.8
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
@@ -14,7 +14,7 @@ simo/__pycache__/urls.cpython-38.pyc,sha256=u0x6EqT8S1YfDOSPgbI8Kf-RDlveY9OV-EDX
14
14
  simo/__pycache__/wsgi.cpython-38.pyc,sha256=TpRxO7VM_ql31hbKphVdanydC5RI1nHB4l0QA2pdWxo,322
15
15
  simo/core/__init__.py,sha256=_s2TjJfQImsMrTIxqLAx9AZie1Ojmm6sCHASdl3WLGU,50
16
16
  simo/core/admin.py,sha256=hoJ0OhfWL9T0d6JCY6_Gm3GR-nrgtDR2UQM67rMsjiE,18141
17
- simo/core/api.py,sha256=ZS8e1bd2jjA8a_l7fDpXYBQC4IOYYxe4JoMSAIhRa0Y,27926
17
+ simo/core/api.py,sha256=bA_dw4JRNQvmQ7yyet7P2nrIfTy86L0rlCsGE6VtUnA,28010
18
18
  simo/core/api_auth.py,sha256=vCxvczA8aWNcW0VyKs5WlC_ytlqeGP_H_hkKUNVkCwM,1247
19
19
  simo/core/api_meta.py,sha256=EaiY-dCADP__9MvLpoHvhjytFT92IrxPZDv95xgqasU,4955
20
20
  simo/core/app_widgets.py,sha256=4Lh9FDzdkfh_mccJMe09dyRTT3Uqf9VXwbkurJ9E9oQ,2115
@@ -10191,8 +10191,8 @@ simo/fleet/api.py,sha256=Hxn84xI-Q77HxjINgRbjSJQOv9jii4OL20LxK0VSrS8,2499
10191
10191
  simo/fleet/auto_urls.py,sha256=UX66eR2ykMqFgfIllW-RTdjup5-FieCWl_BVm3CcXKg,702
10192
10192
  simo/fleet/base_types.py,sha256=wL9RVkHr0gA7HI1wZq0pruGEIgvQqpfnCL4cC3ywsvw,102
10193
10193
  simo/fleet/ble.py,sha256=eHA_9ABjbmH1vUVCv9hiPXQL2GZZSEVwfO0xyI1S0nI,1081
10194
- simo/fleet/controllers.py,sha256=mASn88pUAFnkmd0UreXh2M0amZpjbv3xMghfTC8OB94,29744
10195
- simo/fleet/forms.py,sha256=InJxna8UDyPIZTjRFovm78RHaLdw1Pq0f-y7J81f_ZE,57232
10194
+ simo/fleet/controllers.py,sha256=9IJnT6ATuKsfIAh7oTJgSZCY2c9HVIOBLqd0CQ3mjC4,29790
10195
+ simo/fleet/forms.py,sha256=MNLen9TRDmTkQKI8gbycn9FmQHBpjRxfN9cKldiv6Io,57232
10196
10196
  simo/fleet/gateways.py,sha256=lKEJW0MgaOEiNnijH50DNSVChvaUT3TA3UurcI57P8k,5677
10197
10197
  simo/fleet/managers.py,sha256=XOpDOA9L-f_550TNSyXnJbun2EmtGz1TenVTMlUSb8E,807
10198
10198
  simo/fleet/models.py,sha256=t_oi6EYSkg8Y5p3trJPv4MqW6AyUcylge9Bfw83mWCg,16462
@@ -10506,9 +10506,9 @@ simo/users/templates/invitations/expired_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCe
10506
10506
  simo/users/templates/invitations/expired_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10507
10507
  simo/users/templates/invitations/taken_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10508
10508
  simo/users/templates/invitations/taken_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10509
- simo-2.2.6.dist-info/LICENSE.md,sha256=M7wm1EmMGDtwPRdg7kW4d00h1uAXjKOT3HFScYQMeiE,34916
10510
- simo-2.2.6.dist-info/METADATA,sha256=H-Fulbvug2vfFS542OGZVoM4qYioHLFunTM-Oz32k70,1847
10511
- simo-2.2.6.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
10512
- simo-2.2.6.dist-info/entry_points.txt,sha256=SJBxiDpH7noO0STxVI_eRIsGR-nLgdXXeqCDe8cXlbM,65
10513
- simo-2.2.6.dist-info/top_level.txt,sha256=GmS1hrAbpVqn9OWZh6UX82eIOdRLgYA82RG9fe8v4Rs,5
10514
- simo-2.2.6.dist-info/RECORD,,
10509
+ simo-2.2.8.dist-info/LICENSE.md,sha256=M7wm1EmMGDtwPRdg7kW4d00h1uAXjKOT3HFScYQMeiE,34916
10510
+ simo-2.2.8.dist-info/METADATA,sha256=px0nLhZELaKYWYPrsHd0DQXEQ5Ka0Nn7ZkPmNFInUuA,1847
10511
+ simo-2.2.8.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
10512
+ simo-2.2.8.dist-info/entry_points.txt,sha256=SJBxiDpH7noO0STxVI_eRIsGR-nLgdXXeqCDe8cXlbM,65
10513
+ simo-2.2.8.dist-info/top_level.txt,sha256=GmS1hrAbpVqn9OWZh6UX82eIOdRLgYA82RG9fe8v4Rs,5
10514
+ simo-2.2.8.dist-info/RECORD,,
File without changes