mirror of
https://github.com/home-assistant/core.git
synced 2026-04-17 07:34:07 +01:00
Extract all container stats fetching (CPU, memory) from the main and add-on coordinators into a new HassioStatsDataUpdateCoordinator that polls at 60-second intervals. This creates a clean three-coordinator architecture: - Main coordinator (5min): Core/Supervisor/OS/Host version and info - Add-on coordinator (15min): Add-on list, per-addon detailed info - Stats coordinator (60s): Container stats for Core, Supervisor, and add-ons (only when stats entities are enabled) Introduces HassioStatsEntity as a generic base for all container stats sensors, replacing the per-component stats handling that was spread across HassioCoreEntity, HassioSupervisorEntity and HassioAddonEntity. The add-on coordinator's subscription mechanism is renamed from _container_updates to _addon_info_subscriptions to better reflect its now single-purpose nature. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>