Remove deprecated CLOSE_COMM_ON_ERROR from modbus (#112821)
This commit is contained in:
parent
6534943837
commit
797983236f
5 changed files with 0 additions and 28 deletions
|
@ -51,7 +51,6 @@ from .const import (
|
|||
CALL_TYPE_WRITE_REGISTERS,
|
||||
CONF_BAUDRATE,
|
||||
CONF_BYTESIZE,
|
||||
CONF_CLOSE_COMM_ON_ERROR,
|
||||
CONF_MSG_WAIT,
|
||||
CONF_PARITY,
|
||||
CONF_RETRIES,
|
||||
|
@ -273,24 +272,6 @@ class ModbusHub:
|
|||
)
|
||||
else:
|
||||
client_config[CONF_RETRIES] = 3
|
||||
if CONF_CLOSE_COMM_ON_ERROR in client_config:
|
||||
async_create_issue(
|
||||
hass,
|
||||
DOMAIN,
|
||||
"deprecated_close_comm_config",
|
||||
breaks_in_ha_version="2024.4.0",
|
||||
is_fixable=False,
|
||||
severity=IssueSeverity.WARNING,
|
||||
translation_key="deprecated_close_comm_config",
|
||||
translation_placeholders={
|
||||
"config_key": "close_comm_on_error",
|
||||
"integration": DOMAIN,
|
||||
"url": "https://www.home-assistant.io/integrations/modbus",
|
||||
},
|
||||
)
|
||||
_LOGGER.warning(
|
||||
"`close_comm_on_error`: is deprecated and will be removed in version 2024.4"
|
||||
)
|
||||
if CONF_RETRY_ON_EMPTY in client_config:
|
||||
async_create_issue(
|
||||
hass,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue