summaryrefslogtreecommitdiff
path: root/include/py/homekit/mqtt/module/relay.py
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-09-24 02:49:12 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-09-24 02:49:12 +0300
commit3623e770b6b25fcaa1c8d76b9d3dafefec480876 (patch)
treed1b1fb35a1c43b1528040882557ea6783303f539 /include/py/homekit/mqtt/module/relay.py
parentbdbb296697f55f4c3a07af43c9aaf7a9ea86f3d0 (diff)
mqtt: various fixes
Diffstat (limited to 'include/py/homekit/mqtt/module/relay.py')
-rw-r--r--include/py/homekit/mqtt/module/relay.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/py/homekit/mqtt/module/relay.py b/include/py/homekit/mqtt/module/relay.py
index e968031..5cbe09b 100644
--- a/include/py/homekit/mqtt/module/relay.py
+++ b/include/py/homekit/mqtt/module/relay.py
@@ -69,8 +69,7 @@ class MqttRelayModule(MqttModule):
mqtt.subscribe_module(self._get_switch_topic(), self)
mqtt.subscribe_module('relay/status', self)
- def switchpower(self,
- enable: bool):
+ def switchpower(self, enable: bool):
payload = MqttPowerSwitchPayload(secret=self._mqtt_node_ref.secret,
state=enable)
self._mqtt_node_ref.publish(self._get_switch_topic(),