Skip to content

Commit

Permalink
add motion sensor (#222)
Browse files Browse the repository at this point in the history
marcolivierarsenault authored Nov 4, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 68295c5 commit ce7b820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/moonraker/binary_sensor.py
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ async def async_setup_optional_binary_sensors(coordinator, entry, async_add_enti
for obj in object_list["objects"]:
split_obj = obj.split()

if split_obj[0] == "filament_switch_sensor":
if split_obj[0] in ["filament_switch_sensor", "filament_motion_sensor"]:
desc = MoonrakerBinarySensorDescription(
key=f"{split_obj[0]}_{split_obj[1]}",
sensor_name=obj,

0 comments on commit ce7b820

Please sign in to comment.