From cc8771ea437ef7ea3765414c33e2a4cca03bcf17 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 28 Mar 2025 14:48:19 -1000 Subject: [PATCH] move comment --- homeassistant/components/esphome/entry_data.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/esphome/entry_data.py b/homeassistant/components/esphome/entry_data.py index c9f45cb2da1..5e425d96483 100644 --- a/homeassistant/components/esphome/entry_data.py +++ b/homeassistant/components/esphome/entry_data.py @@ -285,11 +285,11 @@ class RuntimeEntryData: needed_platforms: set[Platform] = set() 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): + # 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) if self.device_info.voice_assistant_feature_flags_compat(self.api_version): needed_platforms.add(Platform.BINARY_SENSOR)