Skip to content

Commit

Permalink
Merge pull request #507 from canton7/bugfix/kh-prefix
Browse files Browse the repository at this point in the history
Fix model detection for KH
  • Loading branch information
canton7 authored Jan 13, 2024
2 parents 1540e30 + 0aa6786 commit 03cc0f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/foxess_modbus/inverter_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ def add_connection_type(
RegisterType.HOLDING,
),
# The KH doesn't have a LAN port. It supports both input and holding over RS485
InverterModelProfile(KH, r"^KH-").add_connection_type(AUX, RegisterType.INPUT),
# Some models start with KH-, but some are just e.g. KH10.5
InverterModelProfile(KH, r"^KH").add_connection_type(AUX, RegisterType.INPUT),
# The H3 seems to use holding registers for everything
InverterModelProfile(H3, r"^H3-")
.add_connection_type(
Expand Down

0 comments on commit 03cc0f1

Please sign in to comment.