Skip to content

Commit

Permalink
run pre-commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
dboulware committed Dec 1, 2023
1 parent 1047ff6 commit 98a6fd8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scos_actions/metadata/structs/ntia_diagnostics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Optional, List
from typing import List, Optional

import msgspec

Expand Down Expand Up @@ -30,6 +30,7 @@ class Preselector(msgspec.Struct, **SIGMF_OBJECT_KWARGS):
humidity: Optional[float] = None
door_closed: Optional[bool] = False


class DiagnosticSensor(msgspec.Struct, **SIGMF_OBJECT_KWARGS):
"""
Interface for generating `ntia-diagnostics` `DiagnosticSensor` objects.
Expand All @@ -40,15 +41,16 @@ class DiagnosticSensor(msgspec.Struct, **SIGMF_OBJECT_KWARGS):
:param mimimum_allowed: The minimum value allowed from the sensor before action should be taken
:param description: A description of the sensor
"""

name: str
value: float
maximum_allowed: Optional[float] = None
minimum_allowed: Optional[float] = None
expected_value: Optional[float] = None
description: Optional[str] = None

class SPU(
msgspec.Struct, **SIGMF_OBJECT_KWARGS):

class SPU(msgspec.Struct, **SIGMF_OBJECT_KWARGS):
"""
Interface for generating `ntia-diagnostics` `SPU` objects.
Expand All @@ -66,6 +68,7 @@ class SPU(
:param power_sensors: List of power sensor values
:param door_closed: Boolean indicating if the door is closed
"""

cooling: Optional[bool] = None
heating: Optional[bool] = None
sigan_powered: Optional[bool] = None
Expand Down Expand Up @@ -203,4 +206,3 @@ class Diagnostics(msgspec.Struct, **SIGMF_OBJECT_KWARGS):
spu: Optional[SPU] = None
computer: Optional[Computer] = None
software: Optional[Software] = None

0 comments on commit 98a6fd8

Please sign in to comment.