Skip to content

Commit

Permalink
Merge branch 'main' into 2025.01.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wills106 authored Jan 5, 2025
2 parents dcdc499 + 4fb6fcf commit 3bf7bf9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions custom_components/solax_modbus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class CoreModbusHub:
from pymodbus.constants import Endian
from pymodbus.exceptions import ConnectionException, ModbusIOException
from pymodbus.payload import BinaryPayloadBuilder, BinaryPayloadDecoder, Endian
from pymodbus.framer import FramerType
from pymodbus.transaction import ModbusAsciiFramer, ModbusRtuFramer

from .const import (
INVERTER_IDENT,
Expand Down Expand Up @@ -259,10 +259,10 @@ def __init__(
)
elif interface == "tcp":
if tcp_type == "rtu":
self._client = AsyncModbusTcpClient(host=host, port=port, timeout=5, framer=FramerType.Rtu, retries=6)
self._client = AsyncModbusTcpClient(host=host, port=port, timeout=5, framer=ModbusRtuFramer, retries=6)
elif tcp_type == "ascii":
self._client = AsyncModbusTcpClient(
host=host, port=port, timeout=5, framer=FramerType.Ascii, retries=6
host=host, port=port, timeout=5, framer=ModbusAsciiFramer, retries=6
)
else:
self._client = AsyncModbusTcpClient(host=host, port=port, timeout=5, retries=6)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/solax_modbus/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/wills106/homsassistant-solax-modbus/issues",
"requirements": ["pymodbus==3.7.4"],
"version": "2025.01.0b2"
"version": "2025.01.1"
}
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "SolaX Inverter Modbus",
"render_readme": true,
"homeassistant": "2025.1.0b1"
"homeassistant": "2024.9.0"
}

0 comments on commit 3bf7bf9

Please sign in to comment.