agreg-server/server/app/ports/device_repository.py

7 lines
227 B
Python
Raw Normal View History

from abc import ABC, abstractmethod
class DeviceRepository(ABC):
@abstractmethod
def get_or_create_device_id(self, dev_eui: str) -> str:
"""Retourne le device_id, crée le device s'il est inconnu"""
...