Dear Folks,
I am working on my very first custom component/sensor and facing a strange problem.
My sensor requires minimalmodbus and I does not seem to get it to work.
Within my manifest.json, I set the requirement:
"requirements": ["minimalmodbus==1.0.2"]
Minimalmodbus itself requires pySerial, which is also installed.
But in the logs, I always the this error from minimalmodbus:
File "/usr/local/lib/python3.7/site-packages/minimalmodbus.py", line 208, in __init__
self.serial = _serialports[port] = serial.Serial(
AttributeError: module 'serial' has no attribute 'Serial'
I also added pySerial to the requirements, but this did not solve the problem.
Maybe in HA there is also another module named “serial”?
Up to now, I have no idea what to do…
What am I doing wrong?
Thanks a lot & best regards,
Michael