From b1abdc8b940bd74281f87f1a3fd99eafc1a3f445 Mon Sep 17 00:00:00 2001 From: Gene Hoffman <30377676+hoffmang9@users.noreply.github.com> Date: Mon, 23 Nov 2026 22:19:32 -0800 Subject: [PATCH] Bump starlink-grpc-core to 1.3.1 (#194083) --- homeassistant/components/starlink/coordinator.py | 13 +++++++++++-- homeassistant/components/starlink/manifest.json | 2 +- requirements_all.txt | 2 +- .../starlink/fixtures/status_data_success.json | 5 +++++ .../starlink/snapshots/test_diagnostics.ambr | 5 +++++ 5 files changed, 23 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/starlink/coordinator.py b/homeassistant/components/starlink/coordinator.py index 9959c7de6667..9f3e1980c5e2 100644 --- a/homeassistant/components/starlink/coordinator.py +++ b/homeassistant/components/starlink/coordinator.py @@ -14,6 +14,7 @@ from starlink_grpc import ( LocationDict, ObstructionDict, PowerDict, + SoftwareUpdateDict, StatusDict, UsageDict, get_sleep_config, @@ -46,6 +47,7 @@ class StarlinkData: status: StatusDict obstruction: ObstructionDict alert: AlertDict + software_update: SoftwareUpdateDict usage: UsageDict consumption: PowerDict @@ -74,7 +76,7 @@ class StarlinkUpdateCoordinator(DataUpdateCoordinator[StarlinkData]): context = self.channel_context location = location_data(context) sleep = get_sleep_config(context) - status, obstruction, alert = status_data(context) + status, obstruction, alert, software_update = status_data(context) index, _, _, _, _, usage, consumption, *_ = history_stats( parse_samples=-1 if self.history_stats_start is not None else 1, start=self.history_stats_start, @@ -82,7 +84,14 @@ class StarlinkUpdateCoordinator(DataUpdateCoordinator[StarlinkData]): ) self.history_stats_start = index["end_counter"] return StarlinkData( - location, sleep, status, obstruction, alert, usage, consumption + location, + sleep, + status, + obstruction, + alert, + software_update, + usage, + consumption, ) @override diff --git a/homeassistant/components/starlink/manifest.json b/homeassistant/components/starlink/manifest.json index d56e8a0943e4..d6df611e091d 100644 --- a/homeassistant/components/starlink/manifest.json +++ b/homeassistant/components/starlink/manifest.json @@ -8,5 +8,5 @@ "documentation": "https://www.home-assistant.io/integrations/starlink", "integration_type": "device", "iot_class": "local_polling", - "requirements": ["starlink-grpc-core==1.2.5"] + "requirements": ["starlink-grpc-core==1.3.1"] } diff --git a/requirements_all.txt b/requirements_all.txt index 51e3a6223b46..48234cde9d37 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -3255,7 +3255,7 @@ starline==0.1.5 starlingbank==3.2 # homeassistant.components.starlink -starlink-grpc-core==1.2.5 +starlink-grpc-core==1.3.1 # homeassistant.components.statsd statsd==3.2.1 diff --git a/tests/components/starlink/fixtures/status_data_success.json b/tests/components/starlink/fixtures/status_data_success.json index 0d6411ec42f4..121bddcddea8 100644 --- a/tests/components/starlink/fixtures/status_data_success.json +++ b/tests/components/starlink/fixtures/status_data_success.json @@ -69,5 +69,10 @@ "alert_is_power_save_idle": false, "alert_moving_while_not_mobile": false, "alert_moving_fast_while_not_aviation": false + }, + { + "software_update_progress": null, + "software_update_reboot_ready": null, + "seconds_until_software_update_reboot_possible": null } ] diff --git a/tests/components/starlink/snapshots/test_diagnostics.ambr b/tests/components/starlink/snapshots/test_diagnostics.ambr index b270a0c6a323..4eeb271928ab 100644 --- a/tests/components/starlink/snapshots/test_diagnostics.ambr +++ b/tests/components/starlink/snapshots/test_diagnostics.ambr @@ -64,6 +64,11 @@ 1, False, ]), + 'software_update': dict({ + 'seconds_until_software_update_reboot_possible': None, + 'software_update_progress': None, + 'software_update_reboot_ready': None, + }), 'status': dict({ 'alerts': 0, 'currently_obstructed': False,