mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 17:57:55 +00:00
move comment
This commit is contained in:
parent
94ae489a05
commit
cc8771ea43
@ -285,11 +285,11 @@ class RuntimeEntryData:
|
|||||||
needed_platforms: set[Platform] = set()
|
needed_platforms: set[Platform] = set()
|
||||||
|
|
||||||
if self.device_info:
|
if self.device_info:
|
||||||
# Only load the update platform is the device_info is set
|
|
||||||
# When we restore the entry, the device_info may not be set yet
|
|
||||||
# and we don't want to load the update platform since it needs
|
|
||||||
# a complete device_info.
|
|
||||||
if async_get_dashboard(hass):
|
if async_get_dashboard(hass):
|
||||||
|
# Only load the update platform is the device_info is set
|
||||||
|
# When we restore the entry, the device_info may not be set yet
|
||||||
|
# and we don't want to load the update platform since it needs
|
||||||
|
# a complete device_info.
|
||||||
needed_platforms.add(Platform.UPDATE)
|
needed_platforms.add(Platform.UPDATE)
|
||||||
if self.device_info.voice_assistant_feature_flags_compat(self.api_version):
|
if self.device_info.voice_assistant_feature_flags_compat(self.api_version):
|
||||||
needed_platforms.add(Platform.BINARY_SENSOR)
|
needed_platforms.add(Platform.BINARY_SENSOR)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user