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 +2 -2
- simo/fleet/forms.py +5 -2
- {simo-2.0.34.dist-info → simo-2.0.35.dist-info}/METADATA +1 -1
- {simo-2.0.34.dist-info → simo-2.0.35.dist-info}/RECORD +7 -7
- {simo-2.0.34.dist-info → simo-2.0.35.dist-info}/LICENSE.md +0 -0
- {simo-2.0.34.dist-info → simo-2.0.35.dist-info}/WHEEL +0 -0
- {simo-2.0.34.dist-info → simo-2.0.35.dist-info}/top_level.txt +0 -0
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
|
|
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
|
|
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=
|
|
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
|
-
"
|
|
215
|
+
"50ms offers a good starting point!"
|
|
213
216
|
)
|
|
214
217
|
|
|
215
218
|
def clean(self):
|
|
@@ -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=
|
|
10186
|
-
simo/fleet/forms.py,sha256=
|
|
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.
|
|
10470
|
-
simo-2.0.
|
|
10471
|
-
simo-2.0.
|
|
10472
|
-
simo-2.0.
|
|
10473
|
-
simo-2.0.
|
|
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
|
|
File without changes
|
|
File without changes
|