Skip to content

Commit 2e492a3

Browse files
author
sfstar
authored
Merge pull request #123 from sfstar/feature/patch_compatibility_with_ha_core_2023.9.1
Bump pymodbus 3.5.1 for 2023.9 patch compatibility
2 parents 3b7fd20 + 91e58a3 commit 2e492a3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

custom_components/victron/coordinator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ async def _async_update_data(self) -> dict:
5454
"""Get the latest data from victron"""
5555
self.logger.debug("Fetching victron data")
5656
self.logger.debug(self.decodeInfo)
57-
57+
5858
parsed_data = OrderedDict()
5959
unavailable_entities = OrderedDict()
6060

@@ -72,7 +72,7 @@ async def _async_update_data(self) -> dict:
7272
full_key = str(unit) + "." + key
7373
# self.data["data"][full_key] = None
7474
unavailable_entities[full_key] = False
75-
75+
7676
_LOGGER.warning(f"no valid data returned for entities of slave: {unit} (if the device continues to no longer update) check if the device was physically removed. Before opening an issue please force a rescan to attempt to resolve this issue")
7777
else:
7878
parsed_data = OrderedDict(list(parsed_data.items()) + list(self.parse_register_data(data, register_info_dict[name], unit).items()))
@@ -88,7 +88,7 @@ async def _async_update_data(self) -> dict:
8888

8989
def parse_register_data(self, buffer: ReadHoldingRegistersResponse, registerInfo: OrderedDict(str, RegisterInfo), unit: int) -> dict:
9090
decoder = BinaryPayloadDecoder.fromRegisters(
91-
buffer.registers, byteorder=Endian.Big
91+
buffer.registers, byteorder=Endian.BIG
9292
)
9393
decoded_data = OrderedDict()
9494
for key,value in registerInfo.items():

custom_components/victron/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"iot_class": "local_polling",
1313
"issue_tracker": "https://github.com/sfstar/hass-victron/issues",
1414
"requirements": [
15-
"pymodbus>=3.3.1"
15+
"pymodbus>=3.5.1"
1616
],
1717
"ssdp": [],
1818
"version": "0.0.11",

hacs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Victron GX modbus TCP",
33
"render_readme": true,
4-
"homeassistant": "2023.2.0",
4+
"homeassistant": "2023.9.1",
55
"hacs": "1.28.4"
66
}

0 commit comments

Comments
 (0)