Skip to content

Commit 7508828

Browse files
authored
Adding __all__ export to device_tracker (home-assistant#154525)
1 parent f257e89 commit 7508828

File tree

1 file changed

+45
-4
lines changed

1 file changed

+45
-4
lines changed

homeassistant/components/device_tracker/__init__.py

Lines changed: 45 additions & 4 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 ATTR_GPS_ACCURACY, STATE_HOME # noqa: F401
5+
from homeassistant.const import STATE_HOME
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 ( # noqa: F401
10+
from .config_entry import (
1111
ScannerEntity,
1212
ScannerEntityDescription,
1313
TrackerEntity,
1414
TrackerEntityDescription,
1515
async_setup_entry,
1616
async_unload_entry,
1717
)
18-
from .const import ( # noqa: F401
18+
from .const import (
1919
ATTR_ATTRIBUTES,
2020
ATTR_BATTERY,
2121
ATTR_DEV_ID,
@@ -37,7 +37,7 @@
3737
SCAN_INTERVAL,
3838
SourceType,
3939
)
40-
from .legacy import ( # noqa: F401
40+
from .legacy import (
4141
PLATFORM_SCHEMA,
4242
PLATFORM_SCHEMA_BASE,
4343
SERVICE_SEE,
@@ -61,3 +61,44 @@ 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)