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
|
||||
import logging
|
||||
from flask import Flask
|
||||
from flask_restful import Api
|
||||
import sentry_sdk
|
||||
|
@ -13,17 +13,16 @@ __module_name__ = "models"
|
||||
__version__text__ = "1"
|
||||
|
||||
|
||||
class StatusEnum(enum.Enum):
|
||||
class DeviceStatusEnum(enum.Enum):
|
||||
error = "error"
|
||||
online = "online"
|
||||
offline = "offline"
|
||||
|
||||
|
||||
class DeviceStatusEnum(StatusEnum):
|
||||
error = "error"
|
||||
|
||||
|
||||
class SensorStatusEnum(StatusEnum):
|
||||
class SensorStatusEnum(enum.Enum):
|
||||
unknown = "unknown"
|
||||
online = "online"
|
||||
offline = "offline"
|
||||
|
||||
|
||||
class Device(db.Model):
|
||||
|
Loading…
Reference in New Issue
Block a user