Skip to content

Commit

Permalink
Update hub.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjoyg authored Apr 3, 2024
1 parent a2621cb commit 1f22147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dirigera/hub/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def get_motion_sensors(self) -> List[MotionSensor]:
sensors = list(filter(lambda x: x["deviceType"] == "motionSensor", devices))
return [dict_to_motion_sensor(sensor, self) for sensor in sensors]

def get_motion_sensor_by_id(self) -> MotionSensor:
def get_motion_sensor_by_id(self, id_: str) -> MotionSensorX:
motion_sensor = self._get_device_data_by_id(id_)
if motion_sensor["deviceType"] != "motionSensor":
raise ValueError("Device is not an MotionSensor")
Expand Down

0 comments on commit 1f22147

Please sign in to comment.