Commit Graph

20940 Commits (c8797298ea6975bf6f05bf732e09ebc737a79b8c)

Author SHA1 Message Date
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
Joost Lekkerkerker 493859e589
Add update platform to AirGradient (#123534) 2024-08-13 18:44:12 +02:00
epenet ba54a19d4b
Simplify mock_tts_cache_dir_autouse fixture (#123783) 2024-08-13 18:01:06 +02:00
epenet 679baddd3d
Improve type hints in openalpr_cloud tests (#123812) 2024-08-13 16:08:36 +02:00
epenet e8157ed9a2
Improve type hints in otbr tests (#123814) 2024-08-13 16:08:15 +02:00
epenet 4cc3f7211b
Improve type hints in openuv tests (#123813) 2024-08-13 16:07:17 +02:00
epenet 135f15fdc3
Improve type hints in openai_conversation tests (#123811) 2024-08-13 16:01:24 +02:00
epenet 04b1d2414d
Improve type hints in mobile_app tests (#123793) 2024-08-13 15:19:08 +02:00
epenet ae74fdf252
Improve type hints in nzbget tests (#123798) 2024-08-13 14:57:24 +02:00
epenet 2c4b7c2577
Improve type hints in knx tests (#123787) 2024-08-13 13:32:44 +02:00
Matthias Alphart b3d1d79a49
Update xknx to 3.1.0 and fix climate read only mode (#123776) 2024-08-13 13:28:37 +02:00
epenet 8e0dfbcd13
Improve type hints in modbus tests (#123795) 2024-08-13 13:15:35 +02:00
Louis Christ 30994710e6
Fix status update loop in bluesound integration (#123790)
* Fix retry loop for status update

* Use 'available' instead of _is_online

* Fix tests
2024-08-13 12:55:01 +02:00
epenet 193a7b7360
Improve type hints in dsmr tests (#123785) 2024-08-13 12:18:59 +02:00
epenet e15ac2fbe0
Improve type hints in elevenlabs tests (#123786) 2024-08-13 12:10:15 +02:00
epenet 4ceb9b9dbf
Improve type hints in anthropic tests (#123784) 2024-08-13 11:59:48 +02:00
epenet 3660c2dbb4
Improve type hints in mailgun tests (#123789) 2024-08-13 11:59:22 +02:00
epenet 2b968dfd9a
Improve type hints in mfi tests (#123792) 2024-08-13 11:56:55 +02:00
epenet 5f694d9a84
Improve type hints in mochad tests (#123794) 2024-08-13 11:56:18 +02:00
Erik Montnemery dc462aa529
Remove unnecessary assignment of Template.hass from template (#123773) 2024-08-13 11:54:36 +02:00
epenet 416d2fb82a
Improve type hints in locative tests (#123643) 2024-08-12 21:55:44 +02:00
epenet b0d1d7bdb2
Improve type hints in lcn tests (#123648) 2024-08-12 21:53:32 +02:00
G Johansson 178cb0659a
Guard for no discovery info in command_line (#123717) 2024-08-12 21:35:02 +02:00
G Johansson f46fe7eeb2
Remove deprecated yaml import for velux (#123724) 2024-08-12 21:32:28 +02:00
G Johansson d8b13c8c02
Remove deprecated yaml import for gpsd (#123725) 2024-08-12 21:31:42 +02:00
G Johansson 05c4b1a6a9
Remove deprecated logi_circle integration (#123727) 2024-08-12 21:31:10 +02:00
Jan Bouwhuis 21987a67e7
Cleanup unneeded assignment of hass property on MQTT Template objects (#123706)
* Cleanup unneeded assignment of hass property on MQTT Template objects

* Commented out code and unneeded checks

* Consistent assign hass to Template in mqtt tests

* Remove unused hass attribute

* Missed line
2024-08-12 19:20:21 +02:00
Cyrill Raccaud 5cb9901134
Cleaner unit tests for Swiss public transport (#123660)
cleaner unit tests
2024-08-12 16:19:36 +02:00
J. Nick Koston b20623447e
Ensure HomeKit connection is kept alive for devices that timeout too quickly (#123601) 2024-08-12 14:54:57 +02:00
Barry vd. Heuvel 81faf1b582
Add homematicip_cloud service set cooling home (#121943)
* [homematicip_cloud] Add service to set cooling mode

* Create seperate test for cooling

* Rename service to set_home_cooling_mode

* Raise exception when accesspoint not found
2024-08-12 14:01:12 +02:00
epenet ecf22e4c4f
Improve type hints in logbook tests (#123652) 2024-08-12 13:29:38 +02:00
Joost Lekkerkerker e8d7eb05ae
Delete unused snapshots (#123656)
* Delete unused snapshots

* Delete unused snapshots
2024-08-12 13:28:09 +02:00
Cyrill Raccaud 0803ac9b0b
Add Swiss public transport fetch connections service (#114671)
* add service to fetch more connections

* improve error messages

* better errors

* wip

* fix service register

* add working tests

* improve tests

* temp availability

* test availability

* remove availability test

* change error type for coordinator update

* fix missed coverage

* convert from entity service to integration service

* cleanup changes

* add more tests for the service
2024-08-12 11:26:42 +02:00
epenet 0bb8c4832d
Enable raise-within-try (TRY301) rule in ruff (#123351) 2024-08-12 09:16:33 +02:00
G Johansson 401e36b885
Remove deprecated yaml import from Ecovacs (#123605) 2024-08-12 09:09:51 +02:00
G Johansson 6343a086e4
Remove deprecated process sensor from System monitor (#123616) 2024-08-12 09:08:40 +02:00
G Johansson 4a099ab942
Remove deprecated yaml import from lupusec (#123606) 2024-08-11 22:38:20 +02:00
wittypluck 766733b3b2
Avoid Exception on Glances missing key (#114628)
* Handle case of sensors removed server side

* Update available state on value update

* Set uptime to None if key is missing

* Replace _attr_available by _data_valid
2024-08-11 19:14:43 +02:00
Andrew Jackson be3e720c57
Add diagnostics platform to Mastodon (#123592)
Diagnostics
2024-08-11 14:53:44 +02:00
G Johansson e93d0dfdfc
Use setup method in coordinator for Trafikverket Train (#123138)
* Use setup method in coordinator for Trafikverket Train

* Overwrite types
2024-08-11 14:15:20 +02:00
Joakim Plate f53da62026
Extend ZHA attribute diagnostic information (#123199)
* Include full attribute representation in in data

* Extend attribute diagnostics for zha
2024-08-10 19:25:21 +02:00
Franck Nijhof 0558c85b5d
Revert "Remove ESPHome legacy entity naming" (#123453) 2024-08-10 18:38:20 +02:00
Evgeny 4f8a6979d9
Bump OpenWeatherMap to 0.1.1 (#120178)
* add owm modes

* fix tests

* fix modes

* remove sensors

* Update homeassistant/components/openweathermap/sensor.py

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

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-08-10 17:01:26 +02:00
Michael 5f73c73a88
Improve test coverage for Proximity (#123523)
* remove unneccessary type checking

* remove unused method after #123158

* test when tracked zone is removed
2024-08-10 13:21:01 +02:00
Willem-Jan van Rootselaar 089d855c47
Bump bsblan to 0.5.19 (#123515)
* bump bsblan lib version

* chore: Update bsblan diagnostics to use to_dict() instead of dict() method
2024-08-10 12:28:48 +02:00
dupondje 750bce2b86
Also migrate dsmr entries for devices with correct serial (#123407)
dsmr: also migrate entries for devices with correct serial

When the dsmr code could not find the serial_nr for the gas meter,
it creates the gas meter device with the entry_id as identifier.

But when there is a correct serial_nr, it will use that as identifier
for the dsmr gas device.

Now the migration code did not take this into account, so migration to
the new name failed since it didn't look for the device with correct
serial_nr.

This commit fixes this and adds a test for this.
2024-08-10 10:40:11 +02:00
Michael 94af95c95b
Post merge review for Proximity (#123500)
remove commented code
2024-08-10 01:25:38 +02:00
Michael ac28d34ad5
Improve test coverage for AVM Fritz!Smarthome (#122974) 2024-08-09 20:23:00 +02:00
YogevBokobza 57da71c537
Bump aioswitcher to 4.0.0 (#123260)
* Bump aioswitcher to 4.0.0

* switcher fix version

* swithcer fix test

* switcher fix tests
2024-08-09 20:04:11 +03:00
Franck Nijhof 228db1c063
Support action YAML syntax in old-style notify groups (#123457) 2024-08-09 17:18:42 +02:00
puddly 97410474f5
Bump ZHA library to 0.0.29 (#123464)
* Bump zha to 0.0.29

* Pass the Core timezone to ZHA

* Add a unit test
2024-08-09 10:31:55 -04:00
Andrew Jackson aee5d5126f
Add sensor platform for Mastodon (#123434)
* Add account sensors

* Sensor icons

* Change sensors to use value_fn

* Add native unit of measurement

* Update native unit of measurement

* Change toots to posts

* Fix sensor icons

* Add device entry type

* Explain conditional naming

* Fixes from review

* Remove unnecessary constructor
2024-08-09 16:02:27 +02:00
Jesse Hills 84d6f5ed07
Remove ESPHome legacy entity naming (#123436)
* Remove ESPHome legacy entity naming

* Update test entity_ids to use sanitized name instead of object_id
2024-08-09 11:43:02 +02:00
Brett Adams f8e1c2cfd4
Rework OAuth in Tesla Fleet (#123324)
* Rework Oauth

* Improve docstrings

* Update homeassistant/components/tesla_fleet/oauth.py

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

* review feedback

* Add tests for user creds

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-08-09 08:38:12 +02:00