Commit graph

21643 commits

Author SHA1 Message Date
Erik Montnemery
e6ed3c8c5c
Raise on database error in recorder.migration function (#123644)
* Raise on database error in recorder.migration._update_states_table_with_foreign_key_options

* Improve test coverage

* Fix test

* Fix test
2024-08-14 22:37:23 +02:00
ilan
392f64d33e
Fix Madvr sensor values on startup (#122479)
* fix: add startup values

* fix: update snap

* fix: use native value to show None
2024-08-14 22:06:57 +02:00
Michael
0790611b93
Fix PI-Hole update entity when no update available (#123930)
show installed version when no update available
2024-08-14 20:39:15 +02:00
epenet
3e967700fd
Add missing return type in test __init__ method (part 2) (#123939)
* Add missing return type in test __init__ method (part 2)

* Adjust

* One more

* One more

* More
2024-08-14 17:59:15 +02:00
epenet
178482068d
Add missing return type in test __init__ method (part 3) (#123940) 2024-08-14 17:38:30 +02:00
J. Nick Koston
5958ef363f
Bump pylutron_caseta to 0.21.1 (#123924) 2024-08-14 10:02:44 -05:00
epenet
5608301178
Add missing return type in test __init__ methods (#123932)
* Add missing return type in test __init__ methods

* Adjust
2024-08-14 16:48:52 +02:00
epenet
ae6ac31d02
Improve type hints in smarttub tests (#123910) 2024-08-14 16:02:47 +02:00
epenet
e33a7ecefa
Improve type hints in websocket_api tests (#123922) 2024-08-14 15:54:00 +02:00
Robert Svensson
04598c6fb1
Use more snapshot in UniFi sensor tests (#122875)
* Use more snapshot in UniFi sensor tests

* Fix comment
2024-08-14 15:45:08 +02:00
epenet
ff4dac8f3a
Improve type hints in watttime tests (#123921) 2024-08-14 15:42:53 +02:00
epenet
1227cd8693
Improve type hints in zerproc tests (#123925) 2024-08-14 15:41:15 +02:00
epenet
c65f845329
Improve type hints in wemo tests (#123923)
* Improve type hints in wemo tests

* typo
2024-08-14 15:40:57 +02:00
epenet
e6fc34325d
Improve type hints in zha tests (#123926) 2024-08-14 15:39:52 +02:00
J. Nick Koston
17f0d9ce45
Map pre-heating and defrosting hvac actions in homekit (#123907)
closes #123864
2024-08-14 15:36:49 +02:00
epenet
f7e017aa73
Improve type hints in sia tests (#123909) 2024-08-14 15:08:55 +02:00
epenet
3e5d0eb632
Improve type hints in owntracks tests (#123905) 2024-08-14 15:08:10 +02:00
epenet
fa8f86b672
Improve type hints in smartthings tests (#123912) 2024-08-14 15:07:55 +02:00
epenet
2c99bd178c
Improve type hints in subaru tests (#123911) 2024-08-14 15:06:33 +02:00
epenet
99b1fc75d3
Improve type hints in traccar tests (#123919) 2024-08-14 15:04:51 +02:00
epenet
78c868c075
Improve type hints in tile tests (#123916) 2024-08-14 15:03:51 +02:00
epenet
1e5762fbf7
Improve type hints in tod tests (#123917) 2024-08-14 15:03:38 +02:00
epenet
7f6bf95aa6
Improve type hints in universal tests (#123920) 2024-08-14 15:02:52 +02:00
epenet
67f761c0e9
Improve type hints in template tests (#123915) 2024-08-14 14:58:16 +02:00
epenet
324b6529e8
Improve type hints in telegram_bot tests (#123914) 2024-08-14 14:56:58 +02:00
epenet
ccde51da85
Improve type hints in tasmota tests (#123913) 2024-08-14 14:56:03 +02:00
Erik Montnemery
e050d187c4
Clarify SQLite can't drop foreign key constraints (#123898) 2024-08-14 07:04:53 -05:00
Erik Montnemery
80f5683cd6
Raise on database error in recorder.migration._add_constraint (#123646)
* Raise on database error in recorder.migration._add_constraint

* Fix test
2024-08-14 13:59:06 +02:00
Thomas55555
3b1b600606
Bump aioautomower to 2024.8.0 (#123826) 2024-08-14 13:47:49 +02:00
epenet
1ddc723274
Improve type hints in powerwall tests (#123872) 2024-08-14 13:12:24 +02:00
epenet
d4082aee5a
Improve type hints in owntracks tests (#123866) 2024-08-14 13:08:54 +02:00
epenet
5f1d7e5566
Improve type hints in purpleair tests (#123874) 2024-08-14 13:05:52 +02:00
epenet
1af6528f4f
Improve type hints in prusalink tests (#123873) 2024-08-14 13:05:43 +02:00
epenet
f414f5d77a
Improve type hints in person tests (#123871) 2024-08-14 13:00:07 +02:00
epenet
8117532cc7
Improve type hints in rainforest_eagle tests (#123880) 2024-08-14 12:58:49 +02:00
Andrew Jackson
ac223e64f9
Migrate Mastodon unique id (#123877)
* Migrate unique id

* Fix unique id check

* Switch to minor version and other fixes
2024-08-14 12:55:59 +02:00
epenet
d50bac3b3e
Improve type hints in rainmachine tests (#123881) 2024-08-14 12:52:09 +02:00
epenet
6626c63bb5
Improve type hints in recollect_waste tests (#123882) 2024-08-14 12:51:52 +02:00
epenet
7fe2f175aa
Improve type hints in ridwell tests (#123886) 2024-08-14 12:50:51 +02:00
epenet
13b071fd72
Improve type hints in risco tests (#123887) 2024-08-14 12:50:29 +02:00
epenet
7ff368fe0d
Improve type hints in sharkiq tests (#123888) 2024-08-14 12:50:08 +02:00
epenet
f8879a51fe
Improve type hints in sma tests (#123889) 2024-08-14 12:49:53 +02:00
epenet
57902fed22
Improve type hints in smart_meter_texas tests (#123890) 2024-08-14 12:49:27 +02:00
epenet
24a8060f43
Improve type hints in sonos tests (#123891) 2024-08-14 12:48:36 +02:00
epenet
165ec62405
Improve type hints in ssdp tests (#123892) 2024-08-14 12:48:10 +02:00
epenet
a712eca70a
Improve type hints in stream tests (#123894) 2024-08-14 12:47:38 +02:00
epenet
36f9b69923
Improve type hints in rfxtrx tests (#123885) 2024-08-14 12:33:26 +02:00
epenet
bd509469ab
Improve type hints in reolink tests (#123883) 2024-08-14 12:16:38 +02:00
Erik Montnemery
b7bbc938d3
Drop violating rows before adding foreign constraints in DB schema 44 migration (#123454)
* Drop violating rows before adding foreign constraints

* Don't delete rows with null-references

* Only delete rows when integrityerror is caught

* Move restore of dropped foreign key constraints to a separate migration step

* Use aliases for tables

* Update homeassistant/components/recorder/migration.py

* Update test

* Don't use alias for table we're deleting from, improve test

* Fix MySQL

* Update instead of deleting in case of self references

* Improve log messages

* Batch updates

* Add workaround for unsupported LIMIT in PostgreSQL

* Simplify

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2024-08-14 09:31:37 +02:00
J. Nick Koston
f14d5ba5f2
Bump yalexs to 8.0.2 (#123817) 2024-08-13 14:06:38 -05:00