From 354186b8af4b51f28db9b73e32ae7033c5ca4ab2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Mu=CC=88ller?= Date: Thu, 24 Oct 2024 08:30:23 +0200 Subject: [PATCH] ignore max-positional-arguments --- apsystems_ez1_mqtt/mqtthandler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apsystems_ez1_mqtt/mqtthandler.py b/apsystems_ez1_mqtt/mqtthandler.py index ed51999..07eee22 100644 --- a/apsystems_ez1_mqtt/mqtthandler.py +++ b/apsystems_ez1_mqtt/mqtthandler.py @@ -46,7 +46,7 @@ class MQTTHandler: """Handle MQTT connection to broker and publish message""" - def __init__(self, trigger_on_status_power, trigger_async_on_max_power, mqtt_config: MQTTConfig, qos: int = 1, retain = False): + def __init__(self, trigger_on_status_power, trigger_async_on_max_power, mqtt_config: MQTTConfig, *, qos: int = 1, retain = False): self.mqtt_config = mqtt_config self.qos = qos self.retain = retain @@ -94,7 +94,7 @@ def on_max_power(self, client, userdata, message: mqtt_client.MQTTMessage): # p self.trigger_async_on_max_power(int(message.payload.decode())) - def _publish(self, client, topic: str, msg: mqtt_client.PayloadType, qos: int = 0, retain: bool = False): + def _publish(self, client, topic: str, msg: mqtt_client.PayloadType, qos: int = 0, retain: bool = False): # pylint: disable=too-many-positional-arguments result = client.publish(topic, msg, qos, retain) status = result[0] if status == 0: