mirror of
				https://github.com/KevinMidboe/infra-map.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	ignore casing when looking for printer in hass output
This commit is contained in:
		| @@ -77,7 +77,7 @@ export async function fetchP1P(): Promise<PrinterState> { | ||||
| 		let hassStates = await fetchHassStates(); | ||||
|  | ||||
| 		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); | ||||
| 	} catch (error) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user