mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +00:00
Only lowercase SmartThings media input source if we have it (#139468)
This commit is contained in:
parent
0afdd9556f
commit
ef13b35c35
@ -461,7 +461,7 @@ CAPABILITY_TO_SENSORS: dict[
|
|||||||
translation_key="media_input_source",
|
translation_key="media_input_source",
|
||||||
device_class=SensorDeviceClass.ENUM,
|
device_class=SensorDeviceClass.ENUM,
|
||||||
options_attribute=Attribute.SUPPORTED_INPUT_SOURCES,
|
options_attribute=Attribute.SUPPORTED_INPUT_SOURCES,
|
||||||
value_fn=lambda value: value.lower(),
|
value_fn=lambda value: value.lower() if value else None,
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user