Commit graph

46 commits

Author SHA1 Message Date
epenet
1adaaf49cc
Add specific EntityDescription to describe device tracker entities (#126586)
* Add TrackerEntityDescription to describe tracker entities

* Improve

* Adjust components

* Add ScannerEntityDescription

* Simplify

* Revert

* Set TrackerEntity default source type to SourceType.GPS

* Fix rebase

* Adjust default

* Remove source_type from EntityDescription

* Fix rebase

* Docstring

* Remove BaseTrackerEntityDescription
2024-09-25 07:28:29 +02:00
epenet
3995d001ec
Set default source_type on TrackerEntity and ScannerEntity (#126648)
* Set default source_type on TrackerEntity and ScannerEntity

* Add samples

* Two more

* Adjust tests
2024-09-24 20:56:01 +02:00
epenet
2df6824856
Cleanup source_type type hints in device tracker components (#126592) 2024-09-24 08:54:55 +02:00
epenet
61ff40c299
Add base Entity classes to enforce-class-module pylint plugin (#126473) 2024-09-24 08:52:07 +02:00
epenet
d530fd31b0
Use root import for async_redact_data in diagnostics (#125821) 2024-09-12 20:37:00 +02:00
Jack Boswell
2b2c4e8262
Expose altitude for Starlink device tracker (#115508) 2024-06-22 12:56:28 +02:00
Jack Boswell
278751607f
Fix calculation of Starlink sleep end setting (#115507)
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-06-04 14:19:09 -05:00
Fexiven
535da483b6
Rework update_data starlink coordinator (#114642)
* Update coordinator.py

fixes https://github.com/home-assistant/core/issues/114353

* Rework update_data starlink coordinator

* modify return handlung according to ruff

* add type annotation for _get_srtarlink_data

* add channel_context type annotation

* Add docstring

* ruff ruff here you go - modfied docstring

* Clean up

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-04-03 20:51:55 +02:00
Fexiven
e473914407
Fix Starlink integration startup issue (#114615) 2024-04-02 12:04:07 +02:00
Jack Boswell
385da75963
Catch potential ValueError when getting or setting Starlink sleep values (#114607) 2024-04-02 10:45:46 +02:00
Jack Boswell
34b0ff40f3
Allow configuring Starlink sleep schedule (#103057)
* Expose sleep config getters and setters

* Add a switch for toggling sleep schedule

* Add Time platform

* Add frozen to dataclasses

* Update tests

* Add starlink time to coveragerc

* No more mixin

* Update time.py

* Update time.py

* Run data collectors asynchronously

* Fix timezone handling
2024-03-18 16:18:32 +01:00
Joost Lekkerkerker
e4b43680e1
Remove entity description mixin in Starlink (#112943) 2024-03-11 11:18:01 +01:00
Marc Mueller
930a396712
Add empty line after module docstring [s] (#112704) 2024-03-08 14:33:51 +01:00
Joost Lekkerkerker
c5e11a00ba
Add icon translations to Starlink (#112244) 2024-03-04 20:05:15 +01:00
Erik Montnemery
b0ed8c4961
Migrate integrations s-t to generic flowhandler (#111865) 2024-02-29 22:16:14 +01:00
Erik Montnemery
0c2485bc03
Freeze integration entity descriptions (#105984)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-18 16:28:13 -10:00
Jack Boswell
8fde275662
Rename Starlink Idle to Sleep (#103048) 2023-10-30 09:40:15 +01:00
Jack Boswell
89d7c33e31
Bump starlink-grpc-core to 1.1.3 (#103043) 2023-10-30 08:56:50 +01:00
Jack Boswell
8a6bde1191
Add Starlink device tracker (#91445)
* Fetch location data and redact in diagnostics

* Implement device tracker

* Fix failing tests

* Update starlink-grpc-core

* Update coveragerc

* Hardcode GPS source type

* Use translations

* Move DEVICE_TRACKERS a little higher in the file

* Separate status and location check try/catches

* Revert "Separate status and location check try/catches"

This reverts commit 7628ec62f6.
2023-08-19 11:36:23 +02:00
Marc Mueller
8b0fdd6fd2
Use asyncio.timeout [s-z] (#98452) 2023-08-15 14:34:18 +02:00
Erik Montnemery
045c327928
Move DeviceInfo from entity to device registry (#98149)
* Move DeviceInfo from entity to device registry

* Update integrations
2023-08-10 22:04:26 -04:00
Jack Boswell
7436054352
Update starlink-grpc-tools to 1.1.2 (#97824) 2023-08-05 19:54:54 +02:00
Jack Boswell
49b9dd2a4f
Add Starlink to .strict-typing (#97598) 2023-08-02 08:26:50 +02:00
Jack Boswell
7a92bda514
Fix Starlink Roaming name being blank (#97597) 2023-08-02 08:12:49 +02:00
Jack Boswell
122794ada8
Fix Starlink ping drop rate reporting (#97555) 2023-08-01 10:06:19 +02:00
Paulus Schoutsen
7859be6481
Add deduplicate translations script (#96384)
* Add deduplicate script

* Fix forecast_solar incorrect key with space

* Fix utf-8

* Do not create references to other arbitrary other integrations

* Add commented code to only allow applying to referencing integrations

* Tweak

* Bug fix

* Add command line arg for limit reference

* never suggest to update common keys

* Output of script

* Apply suggestions from code review

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

---------

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2023-07-13 11:52:50 -04:00
Joost Lekkerkerker
3f907dea80
Add entity translations to Starlink (#96181) 2023-07-09 21:43:18 +02:00
Jack Boswell
00191ace6c
Expose ping drop rate Starlink sensor (#91444) 2023-04-16 08:25:36 -10:00
Jack Boswell
b43b2eb3cb
Avoid rounding Starlink sensor data & instead allow configurable precision (#89486) 2023-03-15 20:40:22 +01:00
Jack Boswell
c33ca4f664
Add diagnostics to Starlink (#86328) 2023-03-14 22:24:47 +01:00
Jack Boswell
c6d2824afe
Disable some less commonly used starlink entities by default (#87869)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-03-09 13:06:27 +01:00
Erik Montnemery
cc564026fa
Move EntityCategory to homeassistant.const (#87792)
* Move EntityCategory to homeassistant.const

* Fix more imports
2023-02-09 20:15:37 +01:00
Erik Montnemery
23fa500406
Sort manifests 9 (#87030) 2023-02-08 20:22:30 +01:00
Franck Nijhof
939eef3b28
Remove translations from Core (#87543)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-06 15:06:43 +01:00
GitHub Action
0f80932709 [ci skip] Translation update 2023-02-02 00:25:01 +00:00
Jack Boswell
ca885f3fab
Add a switch to Starlink for stow/unstow (#85730)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-01-18 14:57:48 -10:00
GitHub Action
d1ecc418bb [ci skip] Translation update 2023-01-19 00:25:04 +00:00
Jack Boswell
ec1b4d5651
Address Starlink code quality and add update sensor (#86066)
* Use dt.now

* Bring back update binary sensor

* Don't patch coordinator

* Add silver quality scale
2023-01-17 09:10:40 +01:00
Jack Boswell
8c235357a4
Add Starlink reboot button (#85729) 2023-01-15 21:22:19 -10:00
GitHub Action
b81453cb6b [ci skip] Translation update 2023-01-16 00:24:22 +00:00
GitHub Action
dffc913f9e [ci skip] Translation update 2023-01-14 00:22:57 +00:00
Jack Boswell
43cc8a1ebf
Add binary_sensor to Starlink (#85409)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-01-11 17:18:54 -10:00
GitHub Action
f2df72e014 [ci skip] Translation update 2023-01-10 00:25:07 +00:00
GitHub Action
6ce88cd5af [ci skip] Translation update 2023-01-09 00:23:57 +00:00
GitHub Action
0b163aac7d [ci skip] Translation update 2023-01-08 00:26:22 +00:00
Jack Boswell
3ad4caa3d7
Add Starlink Integration (#77091)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-01-07 10:13:37 -10:00