73 Commits

Author SHA1 Message Date
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
Jan-Philipp Benecke
9f7eb36a1f
Remove deprecated speed limit lock entity from tessie (#128043)
Remove deprecated speedlimit lock entity from tessie
2024-10-10 17:51:10 +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
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
epenet
7652c35ee6
Use start_reauth helper method in integration tests (t) (#124794) 2024-08-28 16:47:10 +02:00
Joost Lekkerkerker
e8d7eb05ae
Delete unused snapshots (#123656)
* Delete unused snapshots

* Delete unused snapshots
2024-08-12 13:28:09 +02:00
Brett Adams
31d3b3b675
Handle empty energy sites in Tesla integrations (#122355) 2024-07-22 13:14:15 +02:00
Brett Adams
b06d3fe3b7
Platinum quality for Tessie (#121962) 2024-07-18 09:38:26 +02:00
Brett Adams
f8015a7abc
Add test coverage for Tessie seat coolers (#121742) 2024-07-11 09:13:50 +02:00
Brett Adams
307ae53066
Add sunroof to Tessie (#121743) 2024-07-11 09:03:46 +02:00
Brett Adams
f46c127423
Add energy switch entities to Tessie (#121360) 2024-07-06 12:45:27 +02:00
Brett Adams
e04d612874
Add energy number entities for Tessie (#121354) 2024-07-06 12:29:18 +02:00
Brett Adams
8f7c3da456
Add energy select entities to Tessie (#120641) 2024-07-06 11:49:53 +02:00
Brett Adams
696ae91c35
Add energy binary sensors to Tessie (#121349) 2024-07-06 11:05:52 +02:00
Brett Adams
294c31f6f5
Fix initial Wall Connector values in Tessie (#121353) 2024-07-06 10:54:09 +02:00
Brett Adams
18370bdbb4
Add diagnostics to Tessie (#121348)
* Add diag

* Add snapshot

* Redact serial number
2024-07-06 09:00:03 +02:00
Brett Adams
3d580259e1
Check Tessie scopes to fix startup bug (#120710)
* Add scope check

* Add tests

* Bump Teslemetry
2024-06-28 11:21:59 +02:00
Brett Adams
cb92510571
Fix values at startup for Tessie (#120652) 2024-06-27 13:17:15 +02:00
Brett Adams
ec16fc235b
Add new coordinators to Tessie (#118452)
* WIP

* wip

* Add energy classes

* Add basis for Testing

* Bump Library

* fix case

* bump library

* bump library again

* bump library for teslemetry

* reorder

* Fix super

* Update strings.json

* Tests

* Small tweaks

* Bump

* Bump teslemetry

* Remove version

* Add WC states

* Bump to match dev

* Review feedback

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Review feedback

* Review feedback 1

* Review feedback 2

* TessieWallConnectorStates Enum

* fixes

* Fix translations and value

* Update homeassistant/components/tessie/strings.json

* Update homeassistant/components/tessie/strings.json

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-06-26 14:23:06 +02:00
Brett Adams
fde7ddfa71
Fix charge behavior in Tessie (#119546) 2024-06-21 11:30:57 +02:00
epenet
2a061f58eb
Fix dangerous-default-value warnings in tessie tests (#119605) 2024-06-13 16:55:06 +02:00
epenet
fb1b0058ee
Fix consider-using-tuple pylint warnings in component tests (#119464)
* Fix consider-using-tuple pylint warnings in component tests

* Apply su

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

---------

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2024-06-12 15:50:27 +02:00
Sid
721b2c2ca8
Enable Ruff PT012 (#113957) 2024-06-08 17:59:08 +02:00
Brett Adams
e4be3d8435
Improve the reliability of tests in Tessie (#118596) 2024-06-07 22:11:35 +02:00
epenet
44f715bd02
Use issue_registry fixture in component tests (#118041) 2024-05-24 15:54:20 +02:00
Brett Adams
0e0b543dec
Deprecate speed limit lock in Tessie (#113848) 2024-04-24 13:30:22 +02:00
J. Nick Koston
e17c4ab4e3
Fix flakey tessie media_player test (#115391) 2024-04-10 14:18:11 -10:00
Joost Lekkerkerker
ee66f6ec8c
Use is in enum comparison in config flow tests P-T (#114675) 2024-04-02 11:21:50 -10:00
Brett Adams
f36c37a3b7
Fix battery heater in Tessie (#114568) 2024-04-02 12:23:08 +02: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
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
Marc Mueller
32f3f46542
Add empty line after module docstring (2) [tests.components] (#112737) 2024-03-08 19:16:21 +01:00
Marc Mueller
87165c0d6e
Add empty line after module docstring [tests t-z] (#112712) 2024-03-08 14:44:56 +01:00
Paul Bottein
0eef449526
Add icon translations to Tessie (#111096) 2024-02-21 19:49:04 +01:00
J. Nick Koston
015f9cdb35
Fix failing tessie tests (#110980) 2024-02-19 20:45:07 -06:00
Brett Adams
61766c0e59
Fix set_temperature in Tessie climate platform (#110445)
* HVAC_MODE support for set_temperature

* Fix import
2024-02-19 21:52:59 +01:00
Brett Adams
980413c57f
Add new range sensors to Tessie (#110446)
* Add new sensors

* Fix tests
2024-02-19 21:50:20 +01:00
Franck Nijhof
e0a9dcd996
Add label registry (#110821) 2024-02-19 11:59:08 +01:00
Brett Adams
da29b4ef16
Add Speed Limit to Tessie lock platform (#106527)
* Add speed limit

* Make regex more readable

* Add tests

* Add test

* Ruff

* Remove extra line

* Update snapshot

* Remove bad snapshot
2024-02-03 22:21:19 +01:00
Brett Adams
e328d3ec5e
Add Charging sensor to Tessie (#108205) 2024-02-02 13:21:13 +01:00
Brett Adams
d3dbd6fa70
Change device class of Auto Seat Heater sensors in Tessie (#109240) 2024-02-02 12:38:57 +01:00
Brett Adams
1584f02e71
Fix time to arrival to timestamp in Tessie (#109172)
* Fix time to arrival

* Update snapshot

* Freeze time for snapshot

* Fix docstring

* Add available_fn

* Update snapshot

* Dont use variance for full charge

* Remove unrelated changes

* Revert snapshot

* Rename hours_to_datetime
2024-01-31 15:52:58 -05:00
Robert Resch
d752ab3aa4
Update climate snapshots to fix CI (#109141) 2024-01-30 16:54:41 +01:00
Brett Adams
128700d41b
Fix tessie tests (#109113)
* Fix device tracker test

* Snapshot cleanup
2024-01-30 11:34:30 +01:00
Brett Adams
858fb1fa37
Add snapshot testing to Tessie (#108346)
* Redo Binary Sensors

* Redo Button

* Redo Climate

* Stage unfixed platforms

* Redo Cover

* Redo device tracker

* Redo lock

* Redo Media Player

* Redo Number

* Redo Select

* Redo Sensor

* Redo Switch

* Redo Update

* Fix setup_platform

* Add mixing snapshot

* Fix config flow

* Centralise entity testing

* Update snapshot

* Rename test_entities

* Fix assert_entities
2024-01-27 13:43:55 +01:00
Brett Adams
e1fd5e83a7
Add time to charge sensor to Tessie (#108342)
* Add time to charge and type checking

* Revert drive_state_shift_state change

* Use original name

* Use function instead of lambda

* Update homeassistant/components/tessie/sensor.py

Co-authored-by: Jan-Philipp Benecke <github@bnck.me>

* Fix callback

* Avoid having to test None

* Go back to if

* Use minutes instead of hours

---------

Co-authored-by: Jan-Philipp Benecke <github@bnck.me>
2024-01-22 21:45:08 +01:00
Brett Adams
32b0bf6b4e
Improve coordinator logic in Tessie to allow sleep (#107988)
* Poll status before state

* Tests
2024-01-18 17:40:36 +01:00
Brett Adams
8b4d99f7d2
Add route sensors to Tessie (#106530)
* keys may be missing at startup

* Add route sensors and tracker location

* Fix keys and add translation

* Allow a sensor to have no value

* Move attribute to sensor

* Remove state attribute string
2024-01-14 08:08:54 +01:00