ignore casing when looking for printer in hass output

This commit is contained in:
2025-09-03 00:14:17 +02:00
parent 57fb2febf6
commit bbd8c1e40c

View File

@@ -77,7 +77,7 @@ export async function fetchP1P(): Promise<PrinterState> {
let hassStates = await fetchHassStates(); let hassStates = await fetchHassStates();
hassStates = hassStates.filter( hassStates = hassStates.filter(
(el: Entity) => el.attributes.friendly_name?.includes('P1P') === true (el: Entity) => el.attributes.friendly_name?.toLowerCase()?.includes('p1p') === true
); );
return printerState(hassStates); return printerState(hassStates);
} catch (error) { } catch (error) {