Creates a new instance of DeviceService.
The repository used to access device data.
Retrieves an entity by its unique identifier.
The unique identifier of the entity to retrieve.
A promise that resolves to the entity object if found, or null if not found.
Service for device-related operations.