mirror of
https://github.com/home-assistant/core.git
synced 2026-05-28 19:26:11 +01:00
Replace duplicate constants in linux_battery with homeassistant.const imports (#172070)
This commit is contained in:
@@ -12,7 +12,13 @@ from homeassistant.components.sensor import (
|
||||
SensorDeviceClass,
|
||||
SensorEntity,
|
||||
)
|
||||
from homeassistant.const import ATTR_NAME, ATTR_SERIAL_NUMBER, CONF_NAME, PERCENTAGE
|
||||
from homeassistant.const import (
|
||||
ATTR_MANUFACTURER,
|
||||
ATTR_NAME,
|
||||
ATTR_SERIAL_NUMBER,
|
||||
CONF_NAME,
|
||||
PERCENTAGE,
|
||||
)
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import config_validation as cv
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
@@ -28,8 +34,6 @@ ATTR_CYCLE_COUNT = "cycle_count"
|
||||
ATTR_ENERGY_FULL = "energy_full"
|
||||
ATTR_ENERGY_FULL_DESIGN = "energy_full_design"
|
||||
ATTR_ENERGY_NOW = "energy_now"
|
||||
# pylint: disable-next=home-assistant-duplicate-const
|
||||
ATTR_MANUFACTURER = "manufacturer"
|
||||
ATTR_MODEL_NAME = "model_name"
|
||||
ATTR_POWER_NOW = "power_now"
|
||||
ATTR_STATUS = "status"
|
||||
|
||||
Reference in New Issue
Block a user