Skip to content

Commit

Permalink
Merge pull request #46 from Leggin/45-error-calling-hubget_motion_sen…
Browse files Browse the repository at this point in the history
…sors

make light level optional
  • Loading branch information
Leggin authored Feb 7, 2024
2 parents 7050aab + 313e638 commit 7276139
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dirigera/devices/motion_sensor.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
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 MotionSensorAttributes(Attributes):
battery_percentage: int
is_on: bool
light_level: float
light_level: Optional[float]


class MotionSensor(Device):
Expand Down

0 comments on commit 7276139

Please sign in to comment.