Skip to content

Commit 354186b

Browse files
committed
ignore max-positional-arguments
1 parent eb4a047 commit 354186b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apsystems_ez1_mqtt/mqtthandler.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
class MQTTHandler:
4747
"""Handle MQTT connection to broker and publish message"""
4848

49-
def __init__(self, trigger_on_status_power, trigger_async_on_max_power, mqtt_config: MQTTConfig, qos: int = 1, retain = False):
49+
def __init__(self, trigger_on_status_power, trigger_async_on_max_power, mqtt_config: MQTTConfig, *, qos: int = 1, retain = False):
5050
self.mqtt_config = mqtt_config
5151
self.qos = qos
5252
self.retain = retain
@@ -94,7 +94,7 @@ def on_max_power(self, client, userdata, message: mqtt_client.MQTTMessage): # p
9494
self.trigger_async_on_max_power(int(message.payload.decode()))
9595

9696

97-
def _publish(self, client, topic: str, msg: mqtt_client.PayloadType, qos: int = 0, retain: bool = False):
97+
def _publish(self, client, topic: str, msg: mqtt_client.PayloadType, qos: int = 0, retain: bool = False): # pylint: disable=too-many-positional-arguments
9898
result = client.publish(topic, msg, qos, retain)
9999
status = result[0]
100100
if status == 0:

0 commit comments

Comments
 (0)