Merge UniFi device tracker to config entry (#24367)
* Move device tracker to use config entry * Remove monitored conditions attributes based on ADR0003 * Add support for import of device tracker config to be backwards compatible * Remove unnecessary configuration options from device tracker * Add component configuration support
This commit is contained in:
1 parent
3480e6229a
commit
01b890f426
11 files changed
+493
-449
No files matched your search
@@ -1,8 +1,7 @@
|
||||
"""Code to set up a device tracker platform using a config entry."""
|
||||
from typing import Optional
|
||||
|
||||
from homeassistant.helpers.entity import Entity
|
||||
from homeassistant.helpers.entity_component import EntityComponent
|
||||
from homeassistant.components import zone
|
||||
from homeassistant.const import (
|
||||
STATE_NOT_HOME,
|
||||
STATE_HOME,
|
||||
@@ -11,7 +10,8 @@ from homeassistant.const import (
|
||||
ATTR_LONGITUDE,
|
||||
ATTR_BATTERY_LEVEL,
|
||||
)
|
||||
from homeassistant.components import zone
|
||||
from homeassistant.helpers.entity import Entity
|
||||
from homeassistant.helpers.entity_component import EntityComponent
|
||||
|
||||
from .const import (
|
||||
ATTR_SOURCE_TYPE,
|
||||
|
||||
Reference in new issue
Block a user