simo 2.0.34__py3-none-any.whl → 2.0.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/fleet/controllers.py CHANGED
@@ -223,12 +223,12 @@ class PWMOutput(FleeDeviceMixin, BasicOutputMixin, BaseDimmer):
223
223
  elif value < conf.get('min', 0):
224
224
  value = conf.get('min', 0)
225
225
 
226
- if value == conf.get('max', 100):
226
+ if value >= conf.get('max', 100):
227
227
  if conf.get('inverse'):
228
228
  pwm_value = 0
229
229
  else:
230
230
  pwm_value = 1023
231
- elif value == conf.get('min', 100):
231
+ elif value <= conf.get('min', 100):
232
232
  if conf.get('inverse'):
233
233
  pwm_value = 1023
234
234
  else:
simo/fleet/forms.py CHANGED
@@ -184,6 +184,9 @@ class ControlPinForm(forms.Form):
184
184
  ('momentary', "Momentary"), ('toggle', "Toggle"),
185
185
  ),
186
186
  )
187
+ debounce = forms.IntegerField(
188
+ required=False, help_text="Add debounce value in ms (10 - 200ms)"
189
+ )
187
190
  prefix = 'controls'
188
191
 
189
192
 
@@ -205,11 +208,11 @@ class ColonelBinarySensorConfigForm(ColonelComponentForm):
205
208
  "you deliver GND to the input and OFF when you cut it out."
206
209
  )
207
210
  debounce = forms.IntegerField(
208
- min_value=0, max_value=1000 * 60 * 60, required=False, initial=0,
211
+ min_value=0, max_value=1000 * 60 * 60, required=False, initial=50,
209
212
  help_text="Some sensors are unstable and quickly transition "
210
213
  "between ON/OFF states when engaged. <br>"
211
214
  "Set debounce value in milliseconds, to remediate this. "
212
- "100ms offers a good starting point!"
215
+ "50ms offers a good starting point!"
213
216
  )
214
217
 
215
218
  def clean(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: simo
3
- Version: 2.0.34
3
+ Version: 2.0.35
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
@@ -10182,8 +10182,8 @@ simo/fleet/api.py,sha256=Hxn84xI-Q77HxjINgRbjSJQOv9jii4OL20LxK0VSrS8,2499
10182
10182
  simo/fleet/auto_urls.py,sha256=X04oKJWA48wFW5iXg3PPROY2KDdHn_a99orQSE28QC4,518
10183
10183
  simo/fleet/base_types.py,sha256=wL9RVkHr0gA7HI1wZq0pruGEIgvQqpfnCL4cC3ywsvw,102
10184
10184
  simo/fleet/ble.py,sha256=eHA_9ABjbmH1vUVCv9hiPXQL2GZZSEVwfO0xyI1S0nI,1081
10185
- simo/fleet/controllers.py,sha256=ROQWoCWLOiXX4Xh2E9ZPor1ypOibGfd7m8GItP1Si28,23172
10186
- simo/fleet/forms.py,sha256=d3j_nv8uW1e3ptmaMlJZ6buOdFVKOfs6J7WyCbcKoYA,43582
10185
+ simo/fleet/controllers.py,sha256=WCqOA5Qrn9RavdfcB8X06WwaTE-9TGUprTQHZ8V8-nA,23172
10186
+ simo/fleet/forms.py,sha256=Kvw-MG-3mI4OIPwo0uiJ_1E5QX3eIr8WR1_U2ggO3U0,43697
10187
10187
  simo/fleet/gateways.py,sha256=KV5i5fxXIrlK-k6zyEkk83x11GJt-ELQ0npb4Ac83cM,3693
10188
10188
  simo/fleet/managers.py,sha256=XOpDOA9L-f_550TNSyXnJbun2EmtGz1TenVTMlUSb8E,807
10189
10189
  simo/fleet/models.py,sha256=bD5AebGFCAYGXPYhTA2nK1X9KpMG4WK4zFk9OzBDoHI,15301
@@ -10466,8 +10466,8 @@ simo/users/templates/invitations/expired_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCe
10466
10466
  simo/users/templates/invitations/expired_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10467
10467
  simo/users/templates/invitations/taken_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10468
10468
  simo/users/templates/invitations/taken_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10469
- simo-2.0.34.dist-info/LICENSE.md,sha256=M7wm1EmMGDtwPRdg7kW4d00h1uAXjKOT3HFScYQMeiE,34916
10470
- simo-2.0.34.dist-info/METADATA,sha256=aupHMz4VI42i2kPGzjG86agyXhh2e5V_Zc-FI9MLUcA,1730
10471
- simo-2.0.34.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
10472
- simo-2.0.34.dist-info/top_level.txt,sha256=GmS1hrAbpVqn9OWZh6UX82eIOdRLgYA82RG9fe8v4Rs,5
10473
- simo-2.0.34.dist-info/RECORD,,
10469
+ simo-2.0.35.dist-info/LICENSE.md,sha256=M7wm1EmMGDtwPRdg7kW4d00h1uAXjKOT3HFScYQMeiE,34916
10470
+ simo-2.0.35.dist-info/METADATA,sha256=K3eQYM55-6gro2zNR8B_egdy6IPqogizV_qnB1CTwR0,1730
10471
+ simo-2.0.35.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
10472
+ simo-2.0.35.dist-info/top_level.txt,sha256=GmS1hrAbpVqn9OWZh6UX82eIOdRLgYA82RG9fe8v4Rs,5
10473
+ simo-2.0.35.dist-info/RECORD,,
File without changes