Skip to content

Commit 745e7e8

Browse files
committed
home-assistant-custom-components.solax_modbus: fix incompatibility with latest pymodbus version
The pymodbus API changed. Without this change, solax_modbus fails to start.
1 parent ab6027e commit 745e7e8

File tree

1 file changed

+6
-0
lines changed
  • pkgs/servers/home-assistant/custom-components/solax_modbus

1 file changed

+6
-0
lines changed

pkgs/servers/home-assistant/custom-components/solax_modbus/package.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ buildHomeAssistantComponent rec {
1717
hash = "sha256-fgvhF+1fz3pNOZJQjf/iF2Lh9j6mMkUXjgLyCja84K0=";
1818
};
1919

20+
postPatch = ''
21+
substituteInPlace custom_components/solax_modbus/payload.py --replace-fail \
22+
'from pymodbus.utilities import (' \
23+
'from pymodbus.pdu.pdu import ('
24+
'';
25+
2026
dependencies = [ pymodbus ];
2127

2228
meta = {

0 commit comments

Comments
 (0)