home-assistant-custom-components.solax_modbus: fix incompatibility with latest pymodbus version (#406185)
This commit is contained in:
@@ -17,6 +17,12 @@ buildHomeAssistantComponent rec {
|
||||
hash = "sha256-fgvhF+1fz3pNOZJQjf/iF2Lh9j6mMkUXjgLyCja84K0=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace custom_components/solax_modbus/payload.py --replace-fail \
|
||||
'from pymodbus.utilities import (' \
|
||||
'from pymodbus.pdu.pdu import ('
|
||||
'';
|
||||
|
||||
dependencies = [ pymodbus ];
|
||||
|
||||
meta = {
|
||||
|
||||
Reference in New Issue
Block a user