Skip to content

Commit

Permalink
Included battery % in open close sensor (#76)
Browse files Browse the repository at this point in the history
* Included battery % in open close sensor

* Update open_close_sensor.py
  • Loading branch information
sanjoyg authored May 13, 2024
1 parent 6714188 commit 734e56c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dirigera/devices/open_close_sensor.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
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 OpenCloseSensorAttributes(Attributes):
is_open: bool

battery_percentage: Optional[int] = None

class OpenCloseSensor(Device):
dirigera_client: AbstractSmartHomeHub
Expand Down

0 comments on commit 734e56c

Please sign in to comment.