do not extend enumerations
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
56720701b1
commit
c091c53a3e
@ -1,5 +1,4 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import logging
|
|
||||||
from flask import Flask
|
from flask import Flask
|
||||||
from flask_restful import Api
|
from flask_restful import Api
|
||||||
import sentry_sdk
|
import sentry_sdk
|
||||||
|
@ -13,17 +13,16 @@ __module_name__ = "models"
|
|||||||
__version__text__ = "1"
|
__version__text__ = "1"
|
||||||
|
|
||||||
|
|
||||||
class StatusEnum(enum.Enum):
|
class DeviceStatusEnum(enum.Enum):
|
||||||
|
error = "error"
|
||||||
online = "online"
|
online = "online"
|
||||||
offline = "offline"
|
offline = "offline"
|
||||||
|
|
||||||
|
|
||||||
class DeviceStatusEnum(StatusEnum):
|
class SensorStatusEnum(enum.Enum):
|
||||||
error = "error"
|
|
||||||
|
|
||||||
|
|
||||||
class SensorStatusEnum(StatusEnum):
|
|
||||||
unknown = "unknown"
|
unknown = "unknown"
|
||||||
|
online = "online"
|
||||||
|
offline = "offline"
|
||||||
|
|
||||||
|
|
||||||
class Device(db.Model):
|
class Device(db.Model):
|
||||||
|
Loading…
Reference in New Issue
Block a user