mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 09:18:00 +01:00
Fix bug in register name definition (#2526)
This commit is contained in:
parent
c3a8a044b9
commit
98755f3621
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ ModbusRegisterType_ns = modbus_controller_ns.namespace("ModbusRegisterType")
|
||||||
ModbusRegisterType = ModbusRegisterType_ns.enum("ModbusRegisterType")
|
ModbusRegisterType = ModbusRegisterType_ns.enum("ModbusRegisterType")
|
||||||
MODBUS_REGISTER_TYPE = {
|
MODBUS_REGISTER_TYPE = {
|
||||||
"coil": ModbusRegisterType.COIL,
|
"coil": ModbusRegisterType.COIL,
|
||||||
"discrete_input": ModbusRegisterType.DISCRETE,
|
"discrete_input": ModbusRegisterType.DISCRETE_INPUT,
|
||||||
"holding": ModbusRegisterType.HOLDING,
|
"holding": ModbusRegisterType.HOLDING,
|
||||||
"read": ModbusRegisterType.READ,
|
"read": ModbusRegisterType.READ,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue