Secure ATTR_ and CONF_ use identical texts in Modbus (#66901)

This commit is contained in:
jan iversen 2022-02-25 17:05:19 +01:00 committed by GitHub
parent 5c4b149f50
commit adc4c1e33f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 7 deletions

View file

@ -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):