Skip to content

Commit

Permalink
Update environment_sensor.py (#101)
Browse files Browse the repository at this point in the history
Added optional battery_percentage for xiaomi env sensors
  • Loading branch information
sanjoyg authored Oct 17, 2024
1 parent a844b23 commit 121d762
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dirigera/devices/environment_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class EnvironmentSensorAttributes(Attributes):
max_measured_p_m25: Optional[int] = None
min_measured_p_m25: Optional[int] = None
voc_index: Optional[int] = None
battery_percentage: Optional[int] = None


class EnvironmentSensor(Device):
Expand Down

0 comments on commit 121d762

Please sign in to comment.