Allow Modbus "old" config or discovery_info as configuration (#46445)

This commit is contained in:
jan iversen 2021-02-12 16:33:18 +01:00 committed by GitHub
parent f929aa222f
commit 8418489345
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 239 additions and 193 deletions

View file

@ -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"