Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.starlink.device_tracker Namespace Reference

Classes

class  StarlinkDeviceTrackerEntity
 
class  StarlinkDeviceTrackerEntityDescription
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

list DEVICE_TRACKERS
 

Detailed Description

Contains device trackers exposed by the Starlink integration.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.starlink.device_tracker.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback   async_add_entities 
)
Set up all binary sensors for this entry.

Definition at line 20 of file device_tracker.py.

Variable Documentation

◆ DEVICE_TRACKERS

list homeassistant.components.starlink.device_tracker.DEVICE_TRACKERS
Initial value:
1 = [
2  StarlinkDeviceTrackerEntityDescription(
3  key="device_location",
4  translation_key="device_location",
5  entity_registry_enabled_default=False,
6  latitude_fn=lambda data: data.location["latitude"],
7  longitude_fn=lambda data: data.location["longitude"],
8  altitude_fn=lambda data: data.location["altitude"],
9  ),
10 ]

Definition at line 41 of file device_tracker.py.