1 """Creates the device tracker entity for the mower."""
7 from .
import AutomowerConfigEntry
8 from .coordinator
import AutomowerDataUpdateCoordinator
9 from .entity
import AutomowerBaseEntity
14 entry: AutomowerConfigEntry,
15 async_add_entities: AddEntitiesCallback,
17 """Set up device tracker platform."""
18 coordinator = entry.runtime_data
21 for mower_id
in coordinator.data
22 if coordinator.data[mower_id].capabilities.position
27 """Defining the AutomowerDeviceTrackerEntity."""
34 coordinator: AutomowerDataUpdateCoordinator,
36 """Initialize AutomowerDeviceTracker."""
37 super().
__init__(mower_id, coordinator)
42 """Return latitude value of the device."""
47 """Return longitude value of the device."""
None __init__(self, str mower_id, AutomowerDataUpdateCoordinator coordinator)
MowerAttributes mower_attributes(self)
None async_setup_entry(HomeAssistant hass, AutomowerConfigEntry entry, AddEntitiesCallback async_add_entities)