Skip to content

Commit

Permalink
pylint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hmueller01 committed Jun 7, 2024
1 parent c5449ca commit c59ee03
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion APsystemsEZ1mqtt/__main__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""This is the entry point of the script and it runs the main function in an asynchronous manner."""
import asyncio
from APsystemsEZ1mqtt.main import main

# Run the main coroutine.
# This is the entry point of the script and it runs the main function in an asynchronous manner.
asyncio.run(main())
2 changes: 2 additions & 0 deletions APsystemsEZ1mqtt/config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Author: Holger Mueller <github euhm.de>
# Based on aps2mqtt by Florian L., https://github.com/fligneul/aps2mqtt

# pylint: disable=too-many-instance-attributes, too-few-public-methods

"""Application config classes, can be set by file or env variable"""
import os
import yaml
Expand Down
1 change: 1 addition & 0 deletions APsystemsEZ1mqtt/mqtthandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ def hass_init(self, ecu_config: ECUConfig, ecu_info: ReturnDeviceInfo):

def _hass_config(self, mqtt_d_item, ecu_config: ECUConfig, ecu_info: ReturnDeviceInfo):
"""Send a single Home Assistant config message to enable discovery"""
# pylint: disable=too-many-branches
if mqtt_d_item['comp'] is None:
return

Expand Down

0 comments on commit c59ee03

Please sign in to comment.