Brett Adams
3656bcf752
Fix "home" route in Tesla Fleet & Teslemetry ( #129546 )
...
* translate Home to home
* refactor for mypy
* Fix home state
* Revert key change
* Add testing
2024-10-31 08:56:03 +01:00
Brett Adams
da9749ecce
Add data streaming to Teslemetry ( #127559 )
2024-10-25 11:50:37 +02:00
Erik Montnemery
bd55fe868d
Allow update entities to report progress as a float ( #128930 )
...
* Allow update entities to report progress as a float
* Add test
* Update snapshots
* Update recorder test
* Use _attr_* in MockUpdateEntity
2024-10-24 21:20:18 +02:00
Erik Montnemery
e861cab727
Add update_percentage state attribute to update entity ( #128877 )
...
* Add update_percentage state attribute to update entity
* Update tests
* Update tests
2024-10-21 15:31:48 +02:00
epenet
120e17fa1e
Improve logic for detecting unused ignore translations ( #128441 )
2024-10-18 17:59:06 +02:00
epenet
3ba3fbf4a5
Add tests/components/conftest.py to core files ( #128425 )
2024-10-15 10:34:54 +02:00
G Johansson
666e8e133e
Cover state is enum ( #127144 )
...
* Change light state to use enum
* Adjust cover tests
* Update cover
* Fix covers
* Some tests
* More tests
* Fix tests
* Fix
2024-10-08 18:39:04 +02:00
Brett Adams
ae6add1e77
Fix Island status in Teslemetry ( #127504 )
2024-10-07 10:15:25 +02:00
Brett Adams
cad87f51a3
Code quality improvements for Teslemetry ( #123444 )
2024-09-27 15:06:09 +02:00
G Johansson
c6a1b9fc39
Change Climate set temp action for incorrect feature will raise ( #126692 )
...
* Change Climate set temp action for incorrect feature will raise
* Fix some tests
* Fix review comments
* Fix tesla_fleet
* Fix tests
* Fix review comment
2024-09-25 21:16:14 +02:00
Brett Adams
eccb7bb55f
Add Storm watch active to Tesla integrations ( #126704 )
2024-09-25 09:05:33 +02:00
G Johansson
93aade6e8e
Change lock state to an enum ( #126379 )
...
* Add new LockState enum for lock states
* Add rest
* Fix insteon tests
* Fix mqtt tests
* Fix tesla_fleet
* Revert back ST_STATE_LOCKED
* Add back constant
2024-09-24 12:30:50 +02:00
Brett Adams
5186605cec
Add energy history coordinator and sensors to Teslemetry ( #126166 )
...
* start
* More
* fix init
* Update requirements_all.txt
* Update requirements_test_all.txt
* Add Tests
* Add missing fixture
* first refresh history
* Fix mock_energy_history
* Remove failures prop
* Update test_init.py
* Actually add the sensors
* Add more icons
* suggested_display_precision
* Fix updated_once
* Fix fixture
* Review changes
* Apply suggestions from code review
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Remove init data
* Update homeassistant/components/teslemetry/coordinator.py
* ruff
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-09-24 10:32:38 +02:00
Brett Adams
65f007ace7
Remove HVAC Modes when no scopes in Teslemetry ( #124612 )
...
* Remove modes when not scoped
* Fix inits
* Re-add raise
* Remove unused raise_for_scope
* Set hvac_modes when not scoped
* tests
2024-08-31 07:28:35 -07:00
epenet
7652c35ee6
Use start_reauth helper method in integration tests (t) ( #124794 )
2024-08-28 16:47:10 +02:00
G Johansson
a913587eb6
Climate validate temperature(s) out of range ( #118649 )
...
* Climate temperature out of range
* Fix test sensibo
* use temp converting for min/max
* Fix
* Fix mqtt tests
* Fix honeywell tests
* Fix Balboa tests
* Fix whirlpool test
* Fix teslemetry test
* Fix plugwise test
* Fix tplink test
* Fix generic thermostat test
* Fix modbus test
* Fix fritzbox tests
* Honewell
2024-07-31 19:17:53 +02:00
Brett Adams
8d14095cb9
Improve API calls in Teslemetry ( #122449 )
...
* Improve API calls
* Small tweak
* typing fixtures
2024-07-23 12:59:25 +02:00
Brett Adams
31d3b3b675
Handle empty energy sites in Tesla integrations ( #122355 )
2024-07-22 13:14:15 +02:00
Joost Lekkerkerker
f8ba4d41ba
Add support for adding model_id in device info ( #121989 )
2024-07-16 15:12:25 +02:00
Brett Adams
48d9df74ed
Add sunroof to Teslemetry ( #121476 )
2024-07-09 08:36:34 +02:00
Erik Montnemery
9bbeb5d608
Add primary_config_entry attribute to device registry entries ( #119959 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Robert Resch <robert@resch.dev>
2024-06-26 12:26:24 +02:00
Brett Adams
de8bccb650
Add services to Teslemetry ( #119119 )
...
* Add custom services
* Fixes
* wip
* Test coverage
* Update homeassistant/components/teslemetry/__init__.py
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
* Add error translations
* Translate command error
* Fix test
* Expand on comment as requested
* Remove impossible cases
---------
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2024-06-25 12:44:06 +02:00
Paulus Schoutsen
eb89ce47ea
Inline primary integration ( #119860 )
2024-06-18 08:08:08 +02:00
Paulus Schoutsen
836abe68c7
Track primary integration ( #119741 )
...
* Track primary integration
* Update snapshots
* More snapshots updated
* Uno mas
* Update snapshot
2024-06-16 13:26:06 -04:00
Brett Adams
dac661831e
Add unique IDs to config entries for Teslemetry ( #115616 )
...
* Add basic UID
* Add Unique IDs
* Add debug message
* Readd debug message
* Minor bump config version
* Ruff
* Rework migration
* Fix migration return
* Review feedback
* Add test for v2
2024-06-15 12:10:02 +02:00
Brett Adams
4a9ebd9af1
Refactor helpers and bump Teslemetry ( #119246 )
2024-06-10 21:12:09 +02:00
Brett Adams
159503b8d3
Add model to Teslemetry Wall Connectors ( #119251 )
2024-06-10 07:48:09 +02:00
Jan Bouwhuis
4ca38f227a
Fix - Remove unneeded assert in teslemetry test ( #119219 )
...
Remove unneded assert in teslemetry test
2024-06-09 19:21:37 +02:00
Brett Adams
38ab121db5
Add cabin overheat protection entity to Teslemetry ( #118449 )
...
* test_cabin_overheat_protection
* Fix snapshot
* Translate error
* Review Feedback
2024-06-09 18:30:36 +02:00
Sid
721b2c2ca8
Enable Ruff PT012 ( #113957 )
2024-06-08 17:59:08 +02:00
Brett Adams
929568c3b5
Fix off_grid_vehicle_charging_reserve_percent in Teselemetry ( #118532 )
2024-05-31 07:54:40 -05:00
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