This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
devicehub-teal/ereuse_devicehub/resources/device/__init__.py

10 lines
276 B
Python

from ereuse_devicehub.resources.device.schemas import Device
from ereuse_devicehub.resources.device.views import DeviceView
from teal.resource import Resource, Converters
class DeviceDef(Resource):
SCHEMA = Device
VIEW = DeviceView
ID_CONVERTER = Converters.int