mirror of
https://github.com/home-assistant/core.git
synced 2025-11-01 23:19:22 +00:00
Add supervisor key to homassistant_alerts (#82862)
This commit is contained in:
@@ -113,8 +113,10 @@ class Analytics:
|
||||
if stored:
|
||||
self._data = stored
|
||||
|
||||
if self.supervisor:
|
||||
supervisor_info = hassio.get_supervisor_info(self.hass)
|
||||
if (
|
||||
self.supervisor
|
||||
and (supervisor_info := hassio.get_supervisor_info(self.hass)) is not None
|
||||
):
|
||||
if not self.onboarded:
|
||||
# User have not configured analytics, get this setting from the supervisor
|
||||
if supervisor_info[ATTR_DIAGNOSTICS] and not self.preferences.get(
|
||||
|
||||
Reference in New Issue
Block a user