linter deserves happiness
This commit is contained in:
parent
434e1edcc0
commit
e295c62757
3 changed files with 3 additions and 6 deletions
|
@ -17,8 +17,8 @@ from django.utils import timezone
|
||||||
from c3nav.mesh import messages
|
from c3nav.mesh import messages
|
||||||
from c3nav.mesh.messages import (MESH_BROADCAST_ADDRESS, MESH_NONE_ADDRESS, MESH_ROOT_ADDRESS, OTA_CHUNK_SIZE,
|
from c3nav.mesh.messages import (MESH_BROADCAST_ADDRESS, MESH_NONE_ADDRESS, MESH_ROOT_ADDRESS, OTA_CHUNK_SIZE,
|
||||||
MeshMessage, MeshMessageType)
|
MeshMessage, MeshMessageType)
|
||||||
from c3nav.mesh.models import MeshNode, MeshUplink, NodeMessage, OTAUpdate, OTAUpdateRecipient, OTARecipientStatus
|
from c3nav.mesh.models import MeshNode, MeshUplink, NodeMessage, OTARecipientStatus, OTAUpdate, OTAUpdateRecipient
|
||||||
from c3nav.mesh.utils import MESH_ALL_UPLINKS_GROUP, UPLINK_PING, get_mesh_uplink_group, MESH_ALL_OTA_GROUP
|
from c3nav.mesh.utils import MESH_ALL_OTA_GROUP, MESH_ALL_UPLINKS_GROUP, UPLINK_PING, get_mesh_uplink_group
|
||||||
from c3nav.routing.rangelocator import RangeLocator
|
from c3nav.routing.rangelocator import RangeLocator
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -269,7 +269,6 @@ class ConfigUplinkMessage(MeshMessage, msg_type=MeshMessageType.CONFIG_UPLINK):
|
||||||
port: int = field(metadata={"format": SimpleFormat('H')})
|
port: int = field(metadata={"format": SimpleFormat('H')})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@unique
|
@unique
|
||||||
class OTADeviceStatus(EnumSchemaByNameMixin, IntEnum):
|
class OTADeviceStatus(EnumSchemaByNameMixin, IntEnum):
|
||||||
""" ota status, the ones >= 0x10 denote a permanent failure """
|
""" ota status, the ones >= 0x10 denote a permanent failure """
|
||||||
|
|
|
@ -8,7 +8,6 @@ from operator import attrgetter
|
||||||
from typing import Any, Mapping, Optional, Self
|
from typing import Any, Mapping, Optional, Self
|
||||||
|
|
||||||
import channels
|
import channels
|
||||||
from asgiref.sync import async_to_sync
|
|
||||||
from django.contrib.auth import get_user_model
|
from django.contrib.auth import get_user_model
|
||||||
from django.core.validators import RegexValidator
|
from django.core.validators import RegexValidator
|
||||||
from django.db import NotSupportedError, models
|
from django.db import NotSupportedError, models
|
||||||
|
@ -23,7 +22,7 @@ from c3nav.mesh.dataformats import BoardType, ChipType, FirmwareImage
|
||||||
from c3nav.mesh.messages import ConfigFirmwareMessage, ConfigHardwareMessage
|
from c3nav.mesh.messages import ConfigFirmwareMessage, ConfigHardwareMessage
|
||||||
from c3nav.mesh.messages import MeshMessage as MeshMessage
|
from c3nav.mesh.messages import MeshMessage as MeshMessage
|
||||||
from c3nav.mesh.messages import MeshMessageType
|
from c3nav.mesh.messages import MeshMessageType
|
||||||
from c3nav.mesh.utils import UPLINK_TIMEOUT, MESH_ALL_OTA_GROUP
|
from c3nav.mesh.utils import MESH_ALL_OTA_GROUP, UPLINK_TIMEOUT
|
||||||
from c3nav.routing.rangelocator import RangeLocator
|
from c3nav.routing.rangelocator import RangeLocator
|
||||||
|
|
||||||
FirmwareLookup = namedtuple('FirmwareLookup', ('sha256_hash', 'chip', 'project_name', 'version', 'idf_version'))
|
FirmwareLookup = namedtuple('FirmwareLookup', ('sha256_hash', 'chip', 'project_name', 'version', 'idf_version'))
|
||||||
|
@ -528,4 +527,3 @@ class OTAUpdateRecipient(models.Model):
|
||||||
"update": self.update_id,
|
"update": self.update_id,
|
||||||
"status": self.status,
|
"status": self.status,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue