Skip to content

Commit

Permalink
Merge pull request #55 from eric14142004/main
Browse files Browse the repository at this point in the history
Make pm25 and voc optional
  • Loading branch information
Leggin authored Mar 26, 2024
2 parents 022ef83 + e123c6f commit e455d9d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/dirigera/devices/environment_sensor.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
from __future__ import annotations
from typing import Any, Dict
from typing import Any, Dict, Optional
from .device import Attributes, Device
from ..hub.abstract_smart_home_hub import AbstractSmartHomeHub


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


class EnvironmentSensor(Device):
Expand Down

0 comments on commit e455d9d

Please sign in to comment.