mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
parent
c663f7677c
commit
c6b4c88355
@ -31,7 +31,7 @@ def get_chosen_pipeline(
|
|||||||
if state is None or state.state == OPTION_PREFERRED:
|
if state is None or state.state == OPTION_PREFERRED:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
pipeline_store: PipelineStorageCollection = hass.data[DOMAIN]
|
pipeline_store: PipelineStorageCollection = hass.data[DOMAIN].pipeline_store
|
||||||
return next(
|
return next(
|
||||||
(item.id for item in pipeline_store.async_items() if item.name == state.state),
|
(item.id for item in pipeline_store.async_items() if item.name == state.state),
|
||||||
None,
|
None,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user