From ce7b8203c307a6092212b1edf63419ce5afb732b Mon Sep 17 00:00:00 2001 From: Marc-Olivier Arsenault Date: Sat, 4 Nov 2023 08:34:30 -0400 Subject: [PATCH] add motion sensor (#222) --- custom_components/moonraker/binary_sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/moonraker/binary_sensor.py b/custom_components/moonraker/binary_sensor.py index a676c68..2024116 100644 --- a/custom_components/moonraker/binary_sensor.py +++ b/custom_components/moonraker/binary_sensor.py @@ -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,