Skip to content

Commit 64da32b

Browse files
authored
Revert "Adding __all__ export to device_tracker" (home-assistant#154675)
1 parent 3990fc6 commit 64da32b

File tree

1 file changed

+4
-45
lines changed

1 file changed

+4
-45
lines changed

homeassistant/components/device_tracker/__init__.py

Lines changed: 4 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22

33
from __future__ import annotations
44

5-
from homeassistant.const import STATE_HOME
5+
from homeassistant.const import ATTR_GPS_ACCURACY, STATE_HOME # noqa: F401
66
from homeassistant.core import HomeAssistant
77
from homeassistant.helpers.typing import ConfigType
88
from homeassistant.loader import bind_hass
99

10-
from .config_entry import (
10+
from .config_entry import ( # noqa: F401
1111
ScannerEntity,
1212
ScannerEntityDescription,
1313
TrackerEntity,
1414
TrackerEntityDescription,
1515
async_setup_entry,
1616
async_unload_entry,
1717
)
18-
from .const import (
18+
from .const import ( # noqa: F401
1919
ATTR_ATTRIBUTES,
2020
ATTR_BATTERY,
2121
ATTR_DEV_ID,
@@ -37,7 +37,7 @@
3737
SCAN_INTERVAL,
3838
SourceType,
3939
)
40-
from .legacy import (
40+
from .legacy import ( # noqa: F401
4141
PLATFORM_SCHEMA,
4242
PLATFORM_SCHEMA_BASE,
4343
SERVICE_SEE,
@@ -61,44 +61,3 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
6161
"""Set up the device tracker."""
6262
async_setup_legacy_integration(hass, config)
6363
return True
64-
65-
66-
__all__ = (
67-
"ATTR_ATTRIBUTES",
68-
"ATTR_BATTERY",
69-
"ATTR_DEV_ID",
70-
"ATTR_GPS",
71-
"ATTR_HOST_NAME",
72-
"ATTR_IP",
73-
"ATTR_LOCATION_NAME",
74-
"ATTR_MAC",
75-
"ATTR_SOURCE_TYPE",
76-
"CONF_CONSIDER_HOME",
77-
"CONF_NEW_DEVICE_DEFAULTS",
78-
"CONF_SCAN_INTERVAL",
79-
"CONF_TRACK_NEW",
80-
"CONNECTED_DEVICE_REGISTERED",
81-
"DEFAULT_CONSIDER_HOME",
82-
"DEFAULT_TRACK_NEW",
83-
"DOMAIN",
84-
"ENTITY_ID_FORMAT",
85-
"PLATFORM_SCHEMA",
86-
"PLATFORM_SCHEMA_BASE",
87-
"SCAN_INTERVAL",
88-
"SERVICE_SEE",
89-
"SERVICE_SEE_PAYLOAD_SCHEMA",
90-
"SOURCE_TYPES",
91-
"AsyncSeeCallback",
92-
"DeviceScanner",
93-
"ScannerEntity",
94-
"ScannerEntityDescription",
95-
"SeeCallback",
96-
"SourceType",
97-
"TrackerEntity",
98-
"TrackerEntityDescription",
99-
"async_setup",
100-
"async_setup_entry",
101-
"async_unload_entry",
102-
"is_on",
103-
"see",
104-
)

0 commit comments

Comments
 (0)