do not extend enumerations
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-08-06 16:37:44 +02:00
parent 56720701b1
commit c091c53a3e
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
2 changed files with 5 additions and 7 deletions

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python3
import logging
from flask import Flask
from flask_restful import Api
import sentry_sdk

View File

@ -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):