Apply suggestions from code review

This commit is contained in:
J. Nick Koston 2025-03-28 14:47:17 -10:00 committed by GitHub
parent 130b4ca1b2
commit 94ae489a05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -286,9 +286,9 @@ class RuntimeEntryData:
if self.device_info:
# 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
# non-restored data.
# a complete device_info.
if async_get_dashboard(hass):
needed_platforms.add(Platform.UPDATE)
if self.device_info.voice_assistant_feature_flags_compat(self.api_version):