Make ATTR_SERIAL_NUMBER a generic homeassistant constant (#108106)
This commit is contained in:
parent
28e18ce7bf
commit
1a4d1907c9
8 changed files with 7 additions and 12 deletions
|
@ -12,7 +12,7 @@ from homeassistant.components.sensor import (
|
|||
SensorDeviceClass,
|
||||
SensorEntity,
|
||||
)
|
||||
from homeassistant.const import ATTR_NAME, CONF_NAME, PERCENTAGE
|
||||
from homeassistant.const import ATTR_NAME, ATTR_SERIAL_NUMBER, CONF_NAME, PERCENTAGE
|
||||
from homeassistant.core import HomeAssistant
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
|
@ -31,7 +31,6 @@ ATTR_ENERGY_NOW = "energy_now"
|
|||
ATTR_MANUFACTURER = "manufacturer"
|
||||
ATTR_MODEL_NAME = "model_name"
|
||||
ATTR_POWER_NOW = "power_now"
|
||||
ATTR_SERIAL_NUMBER = "serial_number"
|
||||
ATTR_STATUS = "status"
|
||||
ATTR_VOLTAGE_MIN_DESIGN = "voltage_min_design"
|
||||
ATTR_VOLTAGE_NOW = "voltage_now"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue