Skip to content
Snippets Groups Projects
Commit de103173 authored by jkerdreu's avatar jkerdreu
Browse files

Some cosmetics



git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2514 b32b6428-25c9-4566-ad07-03861ab6144f
parent 760c4155
No related branches found
No related tags found
No related merge requests found
*.egg-info
__pycache__
.mypy_cache
......@@ -129,9 +129,9 @@ def out_hysteresis(value,new_value,tol):
return True
mini = value - tol
maxi = value + tol
if new_value < mini or new_value > maxi:
return True
return False
if mini < new_value < maxi:
return False
return True
class SmartPlug(PowerRelay):
......
......@@ -12,8 +12,8 @@ import time
PACKAGE_NAME = 'xaal.tuya'
logger = logging.getLogger(__name__)
CFG_MAP = { 'powerrelay' : devices.PowerRelay,
'smartplug' : devices.SmartPlug ,
CFG_MAP = { 'power_relay' : devices.PowerRelay,
'smart_plug' : devices.SmartPlug ,
'lamp' : devices.Lamp,
'lamp_dimmer' : devices.LampDimmer,
'lamp_rgb' : devices.LampRGB, }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment