I am developing a platform modified from modbus.py or tuya.py. I put the modbus1.py or tuya.py under custom_compents folder. Then add modbus: to configuration.yaml. But there is keyerror in the log file. Could someone help me to resolve the issue? Many thanks.
File “/home/homeassistant/.homeassistant/custom_components/modbus1.py”, line 77, in setup
client_type = config[DOMAIN][CONF_TYPE]
KeyError: ‘modbus’