Move EntityCategory to homeassistant.const (#87792)

* Move EntityCategory to homeassistant.const

* Fix more imports
This commit is contained in:
Erik Montnemery 2023-02-09 20:15:37 +01:00 committed by GitHub
parent abf0c87e40
commit cc564026fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
456 changed files with 644 additions and 632 deletions

View file

@ -15,6 +15,7 @@ from homeassistant.components.sensor import (
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import (
PERCENTAGE,
EntityCategory,
UnitOfElectricCurrent,
UnitOfElectricPotential,
UnitOfPower,
@ -22,7 +23,6 @@ from homeassistant.const import (
)
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.dispatcher import async_dispatcher_connect
from homeassistant.helpers.entity import EntityCategory
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.typing import StateType