Commit Graph

181 Commits (e00808bea86fe9e4267e01ff56f0d395aaad21d4)

Author SHA1 Message Date
GitHub Action f3b3193f7a [ci skip] Translation update 2022-11-25 00:24:19 +00:00
GitHub Action 3bea04e387 [ci skip] Translation update 2022-11-21 00:26:41 +00:00
epenet b39ff4a020
Expose device_tracker base entities (#81135)
* Expose TrackerEntity in device_tracker

* Also expose BaseTrackerEntity

* Add ScannerEntity

* Revert BaseTrackerEntity
2022-10-28 15:21:06 +02:00
rikroe c474db6617
Add EMISSION_CHECK to BMW Connected Drive (#80819) 2022-10-24 19:38:15 +02:00
epenet 54587e96d4
Drop unused unit_system from bmw (#80176) 2022-10-12 17:03:36 +02:00
rikroe da4ceea647
Bump bimmer_connected to 0.10.4 (#78910)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-09-22 08:53:29 +02:00
rikroe cfa838b27a
Small refactoring of BMW lock entity (#77451)
* Refactor entity_description

* Fix default attrs not always shown

* Simplify further

Co-authored-by: @emontnemery

Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-08-31 13:19:47 +02:00
rikroe 516dc3372f
Migrate BMW Connected Drive to new entity naming (#77045)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-08-26 11:04:09 +02:00
rikroe 4eb4146e29
Remove unneeded charging_status attribute in bmw_connected_drive binary sensor (#74921)
* Use `charging_status.value` in attribute for BMW binary sensor

* Remove `charging_status` attribute

Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-08-19 08:36:46 +02:00
rikroe cb2799bc37
Fix displayed units for BMW Connected Drive (#76613)
* Fix displayed units

* Add tests for unit conversion

* Streamline test config entry init

* Refactor test to pytest fixture

* Fix renamed mock

Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-08-16 21:36:33 +02:00
rikroe 4239757c2c
Bump bimmer_connected to 0.10.2 (#76751)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-08-15 13:55:23 +02:00
GitHub Action bec8e544f4 [ci skip] Translation update 2022-08-14 00:25:47 +00:00
rikroe a70252a243
Log not allowed attributes only once in BMW binary sensors (#76708)
* Log not allowed keys only once

* Fix spelling

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>

Co-authored-by: rikroe <rikroe@users.noreply.github.com>
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
2022-08-13 16:05:23 +02:00
rikroe c9c84639ad
Remove `charging_time_label` sensor in BMW Connected Drive (#76616)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-08-13 10:30:39 +02:00
rikroe 0293db343f
Allow only known attrs for BMW binary sensors (#76663)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-08-12 09:45:28 -04:00
rikroe a86397cc10
Fix non-awaited coroutine in BMW notify (#76664)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-08-12 09:19:16 -04:00
Marc Mueller 1a8ccfeb56
Use device_tracker SourceType enum [a-g] (#75963) 2022-07-31 15:51:04 +02:00
rikroe 5687150786
Add state to CheckControlMessages in bmw_connected_drive (#75802)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-07-27 10:01:09 +02:00
rikroe 686449cef6
Force `_attr_native_value` to metric in bmw_connected_drive (#75225)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-07-16 17:00:42 +02:00
rikroe c52d4c64bf
Bump bimmer_connected to 0.10.1 (#75287)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-07-16 16:57:17 +02:00
J. Nick Koston cd03c49fc2
Wait for config entry platform forwards (#73806) 2022-07-09 17:27:42 +02:00
rikroe f78d209f93
Bump bimmer_connected to 0.9.6 (#73977)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-06-25 10:26:57 -07:00
rikroe b4cc9367cf
Bump bimmer_connected to 0.9.5 (#73888)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-06-23 12:18:01 +02:00
rikroe 54591b8ca1
BMW Connected Drive: Handle HTTP 429 issues better (#73675)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-06-22 14:24:16 +02:00
rikroe 91df2db9e0
Bump bimmer_connected to 0.9.4 (#72973)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-06-03 09:59:10 -10:00
Joakim Plate 8910d265d6
Keep track of a context for each listener (#72702)
* Remove async_remove_listener

This avoids the ambuigity as to what happens if same callback is added multiple times.

* Keep track of a context for each listener

This allow a update coordinator to adapt what data to request on update from the backing service based on which entities are enabled.

* Clone list before calling callbacks

The callbacks can end up unregistering and modifying the dict while iterating.

* Only yield actual values

* Add a test for update context

* Factor out iteration of _listeners to helper

* Verify context is passed to coordinator

* Switch to Any as type instead of object

* Remove function which use was dropped earliers

The use was removed in 8bee25c938
2022-06-03 13:55:57 +02:00
rikroe 8d72891d83
Bump bimmer_connected to 0.9.3 (#72677)
Bump bimmer_connected to 0.9.3, fix retrieved units

Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-05-30 08:52:58 +02:00
rikroe 233f086853
Bump bimmer_connected to 0.9.2 (#72653)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-05-28 20:55:50 +03:00
rikroe cd769a55c2
Update BMW connected drive to async (#71827)
* Change BMW connected drive to async

* Fix coordinator exceptions, fix tests

* Fix using deprecated property

* Write HA state directly

* Remove code that cannnot throw Exceptions from try/except

* Use public async_write_ha_state

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Fix login using refresh_token if token expired

* MyPy fixes

* Fix pytest, bump dependency

* Replace OptionFlow listener with explicit refresh

* Remove uneeded async_get_entry

* Update test to include change on OptionsFlow

* Bump bimmer_connected to 0.9.0

* Migrate renamed entitity unique_ids

* Don't replace async_migrate_entries, add tests

* Rename existing_entry to existing_entry_id

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update tests

* Import full EntityRegistry

* Fix comment

* Increase timeout to 60s

* Rely on library timeout

Co-authored-by: rikroe <rikroe@users.noreply.github.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-05-24 21:44:18 +02:00
GitHub Action 3a13ffcf13 [ci skip] Translation update 2022-05-19 00:26:11 +00:00
Marc Mueller e935e1b5b4
Update bmw_connected_drive coordinator typing (#70872) 2022-04-27 14:44:50 +02:00
rikroe eccc8bf79d
Bump bimmer_connected to 0.8.12, fix china login (#70374)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-04-22 19:52:37 -10:00
rikroe 80653463bf
Add DataUpdateCoordinator to bmw_connected_drive (#67003)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-04-20 22:13:09 -10:00
rikroe f456996e12
BMW Connected Drive: Remove deprecated services (#69808)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-04-13 20:26:06 +02:00
rikroe 8b2774e082
Fix converting (value, unit) tuples if value is None (#69802)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-04-10 19:40:03 +03:00
GitHub Action c64b4d997b [ci skip] Translation update 2022-03-13 00:18:58 +00:00
GitHub Action 2957f4ce85 [ci skip] Translation update 2022-03-07 00:18:40 +00:00
rikroe a12870081e
Remove deprecated yaml config from bmw_connected_drive (#66965)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-02-24 13:04:21 +01:00
GitHub Action 102ae9f0e3 [ci skip] Translation update 2022-02-22 00:17:23 +00:00
GitHub Action f921856f5f [ci skip] Translation update 2022-02-21 00:17:31 +00:00
rikroe 8c96f1457d
Bump bimmer_connected to 0.8.11 (#66951)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-02-20 19:17:08 +02:00
GitHub Action c4cc6ca0ba [ci skip] Translation update 2022-02-20 00:20:09 +00:00
GitHub Action 208671418e [ci skip] Translation update 2022-02-16 00:14:09 +00:00
GitHub Action ad0cb4831e [ci skip] Translation update 2022-02-14 00:15:30 +00:00
GitHub Action fb96c31a27 [ci skip] Translation update 2022-02-09 00:23:56 +00:00
GitHub Action 256ad084c5 [ci skip] Translation update 2022-02-03 00:14:18 +00:00
GitHub Action 0be8060b69 [ci skip] Translation update 2022-02-01 00:18:49 +00:00
GitHub Action ca7d4234e1 [ci skip] Translation update 2022-01-31 00:14:28 +00:00
GitHub Action 77ef86faee [ci skip] Translation update 2022-01-30 00:14:21 +00:00
J. Nick Koston 5b755b74fb
Add loggers to integration manifest.json (#65083) 2022-01-28 13:37:53 -08:00