Brett Adams
46158f5c14
Allow older vehicles to sleep in Teslemetry ( #117229 )
...
* Allow older vehicles to sleep
* Remove updated_once
* move pre2021 to lib
* bump
* Bump again
* Bump to 0.5.11
* Fix VIN so it matches the check
* Fix snapshot
* Snapshots
* Fix self.updated_once
* Remove old pre2021 attribute
* fix snapshots
---------
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2024-05-27 12:37:33 +02:00
Brett Adams
841d5dfd4f
Fix flaky test in Teslemetry ( #118196 )
...
Cleanup tests
2024-05-26 17:31:11 -04:00
Brett Adams
f12f82caac
Add update platform to Teslemetry ( #118145 )
...
* Add update platform
* Add tests
* updates
* update test
* Fix support features comment
* Add assertion
2024-05-26 13:04:02 +02:00
Brett Adams
28a6f9eae7
Add number platform to Teslemetry ( #117470 )
...
* Add number platform
* Cast numbers
* rework numbers
* Add number platform
* Update docstrings
* fix json
* Remove speed limit
* Fix snapshot
* remove speed limit icon
* Remove speed limit strings
* rework min max
* Fix coverage
* Fix snapshot
* Apply suggestions from code review
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
* Type callable
* Fix types
---------
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2024-05-26 11:02:35 +02:00
Brett Adams
711f7e1ac3
Add media player platform to Teslemetry ( #117394 )
...
* Add media player
* Add tests
* Better service assertions
* Update strings.json
* Update snapshot
* Docstrings
* Fix json
* Update diag
* Review feedback
* Update snapshot
* use key for title
2024-05-26 10:36:35 +02:00
Brett Adams
af8542ebe1
Add button platform to Teslemetry ( #117227 )
...
* Add buttons
* Add buttons
* Fix docstrings
* Rebase entry.runtime_data
* Revert testing change
* Fix tests
* format json
* Type callable
* Remove refresh
* Update icons.json
* Update strings.json
* Update homeassistant/components/teslemetry/button.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* import Awaitable
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-05-26 09:04:07 +02:00
Brett Adams
ec76f34ba5
Add device tracker platform to Teslemetry ( #117341 )
2024-05-25 12:29:27 +01:00
Brett Adams
b99476284b
Add Cover platform to Teslemetry ( #117340 )
...
* Add cover
* Test coverage
* Json lint
* Apply suggestions from code review
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
* Update tests
* Fix features
* Update snapshot from fixture
* Apply suggestions from code review
---------
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2024-05-24 12:09:23 +02:00
Brett Adams
96d9342f13
Add models to energy sites in Teslemetry ( #117419 )
...
* Add models to energy sites and test devices
* Fix device testing
* Revert VIN
* Fix snapshot
* Fix snapshot
* fix snap
* Sort list
2024-05-24 09:18:22 +02:00
Brett Adams
ad90ecef3f
Add binary sensor platform to Teslemetry ( #117230 )
...
* Add binary sensor platform
* Add tests
* Cleanup
* Add refresh test
* Fix runtime_data after rebase
* Remove streaming strings
* test error
* updated_once
* fix updated_once
* assert_entities_alt
* Update homeassistant/components/teslemetry/binary_sensor.py
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
---------
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2024-05-24 08:55:27 +02:00
Brett Adams
3c7857f0f0
Add lock platform to Teslemetry ( #117344 )
...
* Add lock platform
* Tests and fixes
* Fix json
* Review Feedback
* Apply suggestions from code review
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
* wording
* Fix rebase
---------
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2024-05-24 08:26:29 +02:00
Brett Adams
880b315890
Add switch platform to Teslemetry ( #117482 )
...
* Add switch platform
* Add tests
* Add test
* Fixes
* ruff
* Rename to storm watch
* Remove valet
* Apply suggestions from code review
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
* ruff
* Review feedback
---------
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2024-05-23 14:28:18 +02:00
Brett Adams
1b0c91fa4d
Improve diagnostics in Teslemetry ( #117613 )
2024-05-18 13:27:23 +02:00
Brett Adams
4125b6e15f
Add select platform to Teslemetry ( #117422 )
...
* Add select platform
* Add tests
* Tests WIP
* Add tests
* Update homeassistant/components/teslemetry/select.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/teslemetry/select.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* use references
* Fix typo
* Update homeassistant/components/teslemetry/select.py
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
* Update homeassistant/components/teslemetry/select.py
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
* Make less confusing for @joostlek
* Update homeassistant/components/teslemetry/select.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/teslemetry/select.py
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2024-05-15 18:17:28 +02:00
Brett Adams
af0dd189d9
Improve error handling in Teslemetry ( #117336 )
...
* Improvement command handle
* Add test for ignored reasons
2024-05-12 19:37:59 -07:00
Brett Adams
7509ccff40
Use entry runtime data in Teslemetry ( #117283 )
...
* runtime_data
* runtime_data
* Remove some code
* format
* Fix missing entry.runtime_data
2024-05-12 08:25:09 -04:00
Brett Adams
62d70b1b10
Add energy site coordinator to Teslemetry ( #117184 )
...
* Add energy site coordinator
* Add missing string
* Add another missing string
* Aprettier
2024-05-10 12:38:20 +02:00
Brett Adams
1a4e416bf4
Refactor Teslemetry integration ( #112480 )
...
* Refactor Teslemetry
* Add abstractmethod
* Remove unused timestamp const
* Ruff
* Fix
* Update snapshots
* ruff
* Ruff
* ruff
* Lint
* Fix tests
* Fix tests and diag
* Refix snapshot
* Ruff
* Fix
* Fix bad merge
* has as property
* Remove _handle_coordinator_update
* Test and error changes
2024-05-10 10:52:33 +02:00
J. Nick Koston
3f0c0a72db
Prevent setup retry from delaying shutdown ( #116328 )
2024-04-28 08:13:51 -05:00
Brett Adams
f249a9ba4b
Add API scope checks to Teslemetry ( #113640 )
2024-04-23 22:11:41 +02:00
Brett Adams
7d386b0d26
Fix sensor entity description in Teslemetry ( #115614 )
...
Add description back to sensor entity
2024-04-20 23:54:24 +02:00
Brett Adams
5e1de6842d
Fix Teslemetry sensor values ( #115571 )
2024-04-15 01:48:22 +02:00
Brett Adams
b266224ccd
Add diagnostics to Teslemetry ( #115195 )
...
* Add diag
* Add diag and tests
* Fix redaction
* Add another energy redact
* Review Feedback
* Update snapshot
* Fixed the wrong integration
* Fix snapshot again
* Update tests/components/teslemetry/test_diagnostics.py
---------
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2024-04-12 20:27:38 +02:00
Brett Adams
1cace9a609
Add reauth to Teslemetry ( #114726 )
...
* Add reauth
* Add tests
* PARALLEL_UPDATES
* Bump quality to platinum
* Fix assertion
* Remove quality
* Remove async_create_task
* Review Feedback
* Remove loop inside parametrize
* Change config during reauth
* Fix missing return
2024-04-08 09:44:51 +02:00
Joost Lekkerkerker
ee66f6ec8c
Use is in enum comparison in config flow tests P-T ( #114675 )
2024-04-02 11:21:50 -10:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ( #112690 )
...
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Marc Mueller
efc54971d3
Update empty line formatting after module docstring ( #114040 )
2024-03-23 00:27:57 +01:00
Erik Montnemery
426f73b1f4
Add State.last_reported ( #113511 )
...
* Add State.last_reported
* Update tests
* Update test snapshots
* Call state_reported listeners when firing state_changed event
* Add tests
2024-03-20 21:05:07 +01:00
Brett Adams
219cb7a788
Add additional sensors to Teslemetry ( #112555 )
...
* Add more sensors
* Fix coverage
* Dont do this rename yet
* Fix case
* Update snapshot
* Add icons
* Remove unused icons
* Update snapshot
* Remove last_value logic from TimeSensor
* Apply suggestions from code review
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
* Update constant case
* Remove useless test
* Add refresh test back
* Add assertion to post coordinator refresh
---------
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2024-03-16 11:54:37 +01:00
Brett Adams
1dc3582778
Add icons to Teslemetry ( #112546 )
2024-03-12 21:06:09 +01:00
Marc Mueller
87165c0d6e
Add empty line after module docstring [tests t-z] ( #112712 )
2024-03-08 14:44:56 +01:00
Brett Adams
f801ec45ce
Bump tesla-fleet-api to 0.4.9 ( #112288 )
...
* Bump to 0.4.9
* Use SubscriptionRequired instead of PaymentRequired
2024-03-06 09:09:15 +01:00
Brett Adams
b5528de807
Add sensor platform to Teslemetry ( #109088 )
...
* Adding Energy
* Adding Energy
* Work in progress
* Add fixtures
* Add product info
* Add sensors
* Add icons
* Update metadata
* Use SensorEntityDescription for Energy
* Use ENERGY_STORAGE
* Add tests
* Fix coverage
* Update wall connector precision and units
* Change devices
* Fix serial number
* Add icons and VIN to wall connector
* Fix serial number again
* Update snapshots
* Use timestamp for minutes to arrival
* Cleanup snapshot
* Improvements
* Update fixture
* Add "code" to translations
* Add "code" to snapshot
* Use async_add_entities once
* Disable a bunch of sensors
* Ruff
* Improve fixture and test coverage
* Regen Snapshots
* Add init to coordinator
2024-03-04 18:42:56 +01:00
Brett Adams
767fcd707f
Add wake up timeout to Teslemetry ( #109037 )
2024-02-22 10:50:44 +01:00
Franck Nijhof
e0a9dcd996
Add label registry ( #110821 )
2024-02-19 11:59:08 +01:00
Robert Resch
d752ab3aa4
Update climate snapshots to fix CI ( #109141 )
2024-01-30 16:54:41 +01:00
Brett Adams
b28e8a3cf0
Add tests to Teslemetry ( #108884 )
...
* Add tests
* Add partial sleep test
* Remove useless AsyncMock
* Review feedback
* Patch imports
* Fix mock_test
2024-01-28 21:04:44 +01:00
Brett Adams
909cdc2e5c
Add Teslemetry Integration ( #108147 )
...
* Copy Paste Find Replace
* Small progress
* wip
* more wip
* Add SSE listen and close
* More rework
* Fix coordinator
* Get working
* Bump to 0.1.3
* Push to 0.1.4
* Lots of fixes
* Remove stream
* Add wakeup
* Improve set temp
* Be consistent with self
* Increase polling until streaming
* Work in progress
* Move to single climate
* bump to 0.2.0
* Update entity
* Data handling
* fixes
* WIP tests
* Tests
* Delete other tests
* Update comment
* Fix init
* Update homeassistant/components/teslemetry/entity.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Add Codeowner
* Update coverage
* requirements
* Add failure for subscription required
* Add VIN to model
* Add wake
* Add context manager
* Rename to wake_up_if_asleep
* Remove context from coverage
* change lock to context
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Improving Logger
* Add url to subscription error
* Errors cannot markdown
* Fix logger
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* rename logger
* Fix error logging
* Apply suggestions from code review
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-01-25 12:54:47 +01:00