Allow Modbus "old" config or discovery_info as configuration (#46445)
This commit is contained in:
parent
f929aa222f
commit
8418489345
7 changed files with 239 additions and 193 deletions
|
@ -16,7 +16,7 @@ CONF_PRECISION = "precision"
|
|||
CONF_COILS = "coils"
|
||||
|
||||
# integration names
|
||||
DEFAULT_HUB = "default"
|
||||
DEFAULT_HUB = "modbus_hub"
|
||||
MODBUS_DOMAIN = "modbus"
|
||||
|
||||
# data types
|
||||
|
@ -67,6 +67,7 @@ CONF_VERIFY_STATE = "verify_state"
|
|||
|
||||
# climate.py
|
||||
CONF_CLIMATES = "climates"
|
||||
CONF_CLIMATE = "climate"
|
||||
CONF_TARGET_TEMP = "target_temp_register"
|
||||
CONF_CURRENT_TEMP = "current_temp_register"
|
||||
CONF_CURRENT_TEMP_REGISTER_TYPE = "current_temp_register_type"
|
||||
|
@ -80,6 +81,7 @@ DEFAULT_STRUCTURE_PREFIX = ">f"
|
|||
DEFAULT_TEMP_UNIT = "C"
|
||||
|
||||
# cover.py
|
||||
CONF_COVER = "cover"
|
||||
CONF_STATE_OPEN = "state_open"
|
||||
CONF_STATE_CLOSED = "state_closed"
|
||||
CONF_STATE_OPENING = "state_opening"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue