mirror of
https://github.com/home-assistant/core.git
synced 2026-12-02 19:57:03 -04:00
Bump starlink-grpc-core to 1.3.1 (#194083)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"]
|
||||
}
|
||||
|
||||
Generated
+1
-1
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user