Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make all env sensor attributes optional #89

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading