Only lowercase SmartThings media input source if we have it (#139468)

pull/139037/head^2
Joost Lekkerkerker 2025-02-27 22:50:34 +01:00 committed by GitHub
parent 0afdd9556f
commit ef13b35c35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -461,7 +461,7 @@ CAPABILITY_TO_SENSORS: dict[
translation_key="media_input_source",
device_class=SensorDeviceClass.ENUM,
options_attribute=Attribute.SUPPORTED_INPUT_SOURCES,
value_fn=lambda value: value.lower(),
value_fn=lambda value: value.lower() if value else None,
)
]
},