Skip to content

Commit

Permalink
make all env sensor attributes optional (#89)
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Hilberg <[email protected]>
  • Loading branch information
Leggin and Nicolas Hilberg authored Sep 2, 2024
1 parent 46533fe commit 59f5f10
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/dirigera/devices/environment_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@


class EnvironmentSensorAttributes(Attributes):
current_temperature: float
current_r_h: int
current_p_m25: Optional[int]
max_measured_p_m25: Optional[int]
min_measured_p_m25: Optional[int]
voc_index: Optional[int]
current_temperature: Optional[float] = None
current_r_h: Optional[int] = None
current_p_m25: Optional[int] = None
max_measured_p_m25: Optional[int] = None
min_measured_p_m25: Optional[int] = None
voc_index: Optional[int] = None


class EnvironmentSensor(Device):
Expand Down

0 comments on commit 59f5f10

Please sign in to comment.