mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Apply suggestions from code review
This commit is contained in:
parent
130b4ca1b2
commit
94ae489a05
@ -286,9 +286,9 @@ class RuntimeEntryData:
|
|||||||
|
|
||||||
if self.device_info:
|
if self.device_info:
|
||||||
# Only load the update platform is the device_info is set
|
# Only load the update platform is the device_info is set
|
||||||
# When we restore the entry, the device_info is not set yet
|
# 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
|
# and we don't want to load the update platform since it needs
|
||||||
# non-restored data.
|
# a complete device_info.
|
||||||
if async_get_dashboard(hass):
|
if async_get_dashboard(hass):
|
||||||
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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user