Commit graph

136 commits

Author SHA1 Message Date
epenet
9dc84bfdca
Add shorthand attributes to device_tracker entities (#126599)
* Add shorthand attributes to device_tracker entities

* Simplify

* Update config_entry.py

* Update config_entry.py

* Update device_tracker.py

* Update device_tracker.py
2024-09-24 15:21:33 +02:00
Jan-Philipp Benecke
39e720caed
Use debug/warning instead of info log level in components [t] (#126147) 2024-09-18 12:39:50 +02:00
Maciej Bieniek
bc5849e4ef
Bump aiotractive to 0.6.0 (#121155)
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-07-21 18:11:05 -05:00
Maciej Bieniek
cdcf091c9c
Pass the message as an exception argument in Tractive integration (#118534)
Pass the message as an exception argument

Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-05-31 09:11:52 +02:00
Maciej Bieniek
9bd1c408bd
Raise ConfigEntryNotReady when there is no _id in the Tractive data (#118467)
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-05-30 11:00:36 +02:00
Marc Mueller
44049c34f9
Use PEP 695 type alias for ConfigEntry types (#117632) 2024-05-17 15:42:58 +02:00
Maciej Bieniek
40be1424b5
Store Tractive data in config_entry.runtime_data (#116781)
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2024-05-08 09:03:26 +02:00
Sid
2cc916db6d
Replace pylint broad-except with Ruff BLE001 (#116250) 2024-05-07 14:00:27 +02:00
Sid
0d66d298ec
Enable Ruff RET504 (#114528)
* Enable Ruff RET504

* fix test

* Use noqa instead of cast

* fix sonos RET504

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-04-06 11:07:37 +02:00
Maciej Bieniek
25c920b1ee
Add missing state to the Tractive tracker state sensor (#114654)
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-04-02 18:28:52 +02:00
Maciej Bieniek
c9c0625fa5
Adapt Tractive integration the latest API changes (#114380)
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-03-28 13:25:01 +01:00
Joost Lekkerkerker
a7f71eaa35
Remove entity description mixin in Tractive (#112952)
Remove entity description mixin in
Tractive
2024-03-10 21:45:06 +01:00
Marc Mueller
062cc4bfce
Add empty line after module docstring [t-v] (#112705) 2024-03-08 10:35:23 -05:00
Erik Montnemery
b0ed8c4961
Migrate integrations s-t to generic flowhandler (#111865) 2024-02-29 22:16:14 +01:00
Maciej Bieniek
c2818dcb8e
Add icon translations to Tractive (#110138)
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-09 23:28:56 +01:00
Maciej Bieniek
a6f0b6a005
Ignore trackable without details in Tractive integration (#109814)
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-06 22:36:12 +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
Maciej Bieniek
2d2e215e2c
Fix Tractive switch availability (#104502) 2023-11-28 12:08:12 +01:00
Maciej Bieniek
8e8f2a2163
Don't assume that the sleep value is a dictionary in Tractive integration (#103138)
* Sleep value can be null

* Catch TypeError
2023-11-04 18:08:06 +01:00
Marc Mueller
37288d7788
Add pylint plugin to check for calls to base implementation (#100432) 2023-09-18 13:39:36 -05:00
Andrew Onyshchuk
04bf126425
Update aiotractive to 0.5.6 (#99477) 2023-09-01 23:28:53 +03:00
Maciej Bieniek
fe713cec8f
Don't assume that the activity/sleep labels are always present in Tractive event (#99197)
* Don't assume that the activity_label and sleep_labes are always present in an event

* Catch KeyError
2023-08-29 17:52:29 +02:00
Maciej Bieniek
579c760f53
Add missing low state for ENUM Tractive sensors (#99057)
* Add missing "low" option

* Use existing translations
2023-08-28 08:23:26 +02:00
Maciej Bieniek
66c10facfa
Add Tractive sleep and activity sensors (#98575)
* Add sleep and activity sensors

* Use device class ENUM

* Default value for value_fn
2023-08-19 11:48:23 +02:00
Maciej Bieniek
d44847bb23
Log Tractive events on debug level (#98539) 2023-08-17 17:09:16 +02:00
Maciej Bieniek
d6a7127b84
Improve availability of Tractive entities (#97091)
Co-authored-by: Robert Resch <robert@resch.dev>
2023-08-17 12:15:36 +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
Maciej Bieniek
d611b169ac
Don't assume that battery_level value is always present in Tractive hw_info (#97766)
Don't assume that battery_level value is always present in hw_info
2023-08-05 13:05:15 +02:00
Maciej Bieniek
cd84a188ee
Improve Tractive sensor names (#97192)
* Improve entity names

* Rename translation keys
2023-07-25 11:59:11 +02:00
Maciej Bieniek
fc41f3d25b
Use device class ENUM for Tractive tracker state sensor (#97191) 2023-07-25 11:13:52 +02:00
Maciej Bieniek
f809b7284b
Create Tractive battery charging sensor if charging_state is not None (#96713)
Check if charging_state is available
2023-07-17 09:04:43 +02:00
Maciej Bieniek
79bcca2853
Add wellness sensors to Tractive integration (#96719)
* Add sleep sensors

* Add minutes rest sensor

* Add calories sensor

* Add state_class to entity descriptions
2023-07-17 09:02:42 +02:00
Joost Lekkerkerker
aec0694823
Move tractive attribute to entity class (#96247)
Clean up tractive entities
2023-07-11 08:09:57 +02:00
Maciej Bieniek
a854a5620f
Add entity name translations to Tractive (#90738)
Add entity name translations
2023-04-04 00:01:46 -04: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
b0b1d8143f
Sort manifests 10 (#87031) 2023-02-08 20:41:50 +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
d1ecc418bb [ci skip] Translation update 2023-01-19 00:25:04 +00:00
GitHub Action
b81453cb6b [ci skip] Translation update 2023-01-16 00:24:22 +00:00
GitHub Action
77f9548e51 [ci skip] Translation update 2023-01-15 00:25:52 +00:00
epenet
1766df3faa
Improve integration type hints for diagnostics (#85526) 2023-01-09 15:17:48 +01:00
Franck Nijhof
8819634b61
String formatting and max line length - Part 6 (#84525) 2022-12-24 13:19:51 +01:00
epenet
fba13dcc90
Use UnitOfTime in integrations (t-z) (#84291) 2022-12-20 12:30:14 +01:00
GitHub Action
f25017313a [ci skip] Translation update 2022-12-09 00:24:29 +00:00
GitHub Action
3de8185506 [ci skip] Translation update 2022-12-08 00:21:50 +00:00
GitHub Action
1f3e5fb4fc [ci skip] Translation update 2022-12-07 00:24:08 +00:00
GitHub Action
3ab9a14ce7 [ci skip] Translation update 2022-12-06 00:21:31 +00:00
Franck Nijhof
f125fd5772
Migrate Tractive translations (#83321) 2022-12-05 16:45:57 +01:00
GitHub Action
03154e1d83 [ci skip] Translation update 2022-12-03 00:21:50 +00:00
GitHub Action
230b50d099 [ci skip] Translation update 2022-11-29 00:26:01 +00:00