Secure ATTR_ and CONF_ use identical texts in Modbus (#66901)
This commit is contained in:
parent
5c4b149f50
commit
adc4c1e33f
4 changed files with 6 additions and 7 deletions
|
@ -2,6 +2,7 @@
|
|||
from enum import Enum
|
||||
|
||||
from homeassistant.const import (
|
||||
CONF_ADDRESS,
|
||||
CONF_BINARY_SENSORS,
|
||||
CONF_COVERS,
|
||||
CONF_LIGHTS,
|
||||
|
@ -64,13 +65,11 @@ UDP = "udp"
|
|||
|
||||
|
||||
# service call attributes
|
||||
ATTR_ADDRESS = "address"
|
||||
ATTR_HUB = "hub"
|
||||
ATTR_ADDRESS = CONF_ADDRESS
|
||||
ATTR_HUB = CONF_HUB
|
||||
ATTR_UNIT = "unit"
|
||||
ATTR_SLAVE = "slave"
|
||||
ATTR_VALUE = "value"
|
||||
ATTR_STATE = "state"
|
||||
ATTR_TEMPERATURE = "temperature"
|
||||
|
||||
|
||||
class DataType(str, Enum):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue