Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion homeassistant/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ def get_component(hass, # type: HomeAssistant
Async friendly.
"""
try:
return hass.data[DATA_KEY][comp_or_platform] # type: ignore
comp = hass.data[DATA_KEY][comp_or_platform]
if comp is not None:
return comp # type: ignore
except KeyError:
pass

Expand Down