Skip to content

Commit 22da144

Browse files
committed
Bump version to 1.0.11 and log pymodbus version in debug
1 parent fdc931f commit 22da144

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

custom_components/sigen/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
"loggers": ["custom_components.sigen"],
2222
"quality_scale": "custom",
2323
"requirements": ["pymodbus>=3.0.0"],
24-
"version": "1.0.10"
24+
"version": "1.0.11"
2525
}

custom_components/sigen/modbus.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from pymodbus.exceptions import ConnectionException, ModbusException
1616
from pymodbus.payload import BinaryPayloadBuilder
1717
from pymodbus.client.mixin import ModbusClientMixin
18+
from pymodbus import __version__ as pymodbus_version
1819

1920
from .const import (
2021
CONF_INVERTER_CONNECTIONS,
@@ -86,6 +87,9 @@ def __init__(
8687
self.hass = hass
8788
self.config_entry = config_entry
8889

90+
# Log to dev logger the version of pymodbus being used
91+
_LOGGER.debug("Using pymodbus version: %s", pymodbus_version)
92+
8993
# Dictionary to store Modbus clients for different connections
9094
# Key is (host, port) tuple, value is the client instance
9195
self._clients: Dict[Tuple[str, int], AsyncModbusTcpClient] = {}

0 commit comments

Comments
 (0)