Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.traccar_server.helpers Namespace Reference

Functions

DeviceModel|None get_device (int device_id, list[DeviceModel] devices)
 
GeofenceModel|None get_first_geofence (list[GeofenceModel] geofences, list[int] target)
 

Detailed Description

Helper functions for the Traccar Server integration.

Function Documentation

◆ get_device()

DeviceModel | None homeassistant.components.traccar_server.helpers.get_device ( int  device_id,
list[DeviceModel]  devices 
)
Return the device.

Definition at line 8 of file helpers.py.

◆ get_first_geofence()

GeofenceModel | None homeassistant.components.traccar_server.helpers.get_first_geofence ( list[GeofenceModel]  geofences,
list[int]  target 
)
Return the geofence.

Definition at line 16 of file helpers.py.