Remove warnings
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,4 +1,5 @@
|
|||||||
Domoticz.py
|
Domoticz.py
|
||||||
|
DomoticzEx.py
|
||||||
parameters.properties
|
parameters.properties
|
||||||
run.py
|
run.py
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
|||||||
25
plugin.py
25
plugin.py
@@ -71,6 +71,7 @@ HEATZY_MODE_VALUE_INV = {v: k for k, v in HEATZY_MODE_VALUE.items()}
|
|||||||
DEFAULT_POOLING = 60
|
DEFAULT_POOLING = 60
|
||||||
|
|
||||||
class HeatzyUnit(IntEnum):
|
class HeatzyUnit(IntEnum):
|
||||||
|
"""2 units: Control and Selector"""
|
||||||
CONTROL = 1
|
CONTROL = 1
|
||||||
SELECTOR = 2
|
SELECTOR = 2
|
||||||
|
|
||||||
@@ -143,7 +144,7 @@ class BasePlugin:
|
|||||||
# Get mode
|
# Get mode
|
||||||
self.get_mode()
|
self.get_mode()
|
||||||
|
|
||||||
def on_command(self, DeviceID, Unit, Command, Level, Color): #pylint: disable=unused-argument
|
def on_command(self, DeviceID, Unit, Command, Level, Color): #pylint: disable=unused-argument,invalid-name
|
||||||
"""Send a command"""
|
"""Send a command"""
|
||||||
if Unit == HeatzyUnit.CONTROL:
|
if Unit == HeatzyUnit.CONTROL:
|
||||||
self.on_off(DeviceID, Command)
|
self.on_off(DeviceID, Command)
|
||||||
@@ -465,15 +466,15 @@ def dump_config_to_log():
|
|||||||
if Parameters[x] != "":
|
if Parameters[x] != "":
|
||||||
Domoticz.Debug( "'" + x + "':'" + str(Parameters[x]) + "'")
|
Domoticz.Debug( "'" + x + "':'" + str(Parameters[x]) + "'")
|
||||||
Domoticz.Debug("Device count: " + str(len(Devices)))
|
Domoticz.Debug("Device count: " + str(len(Devices)))
|
||||||
for DeviceName in Devices:
|
for device_name in Devices:
|
||||||
Device = Devices[DeviceName]
|
device = Devices[device_name]
|
||||||
Domoticz.Debug("Device ID: '" + str(Device.DeviceID) + "'")
|
Domoticz.Debug("Device ID: '" + str(device.DeviceID) + "'")
|
||||||
Domoticz.Debug("--->Unit Count: '" + str(len(Device.Units)) + "'")
|
Domoticz.Debug("--->Unit Count: '" + str(len(device.Units)) + "'")
|
||||||
for UnitNo in Device.Units:
|
for unit_no in device.Units:
|
||||||
Unit = Device.Units[UnitNo]
|
unit = device.Units[unit_no]
|
||||||
Domoticz.Debug("--->Unit: " + str(UnitNo))
|
Domoticz.Debug("--->Unit: " + str(unit_no))
|
||||||
Domoticz.Debug("--->Unit Name: '" + Unit.Name + "'")
|
Domoticz.Debug("--->Unit Name: '" + unit.Name + "'")
|
||||||
Domoticz.Debug("--->Unit nValue: " + str(Unit.nValue))
|
Domoticz.Debug("--->Unit nValue: " + str(unit.nValue))
|
||||||
Domoticz.Debug("--->Unit sValue: '" + Unit.sValue + "'")
|
Domoticz.Debug("--->Unit sValue: '" + unit.sValue + "'")
|
||||||
Domoticz.Debug("--->Unit LastLevel: " + str(Unit.LastLevel))
|
Domoticz.Debug("--->Unit LastLevel: " + str(unit.LastLevel))
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user