Commit graph

69728 commits

Author SHA1 Message Date
Brett Adams
8922c93259
Improve tests in Tessie () 2023-12-11 20:30:54 -10:00
Julien "_FrnchFrgg_" Rivaud
bf9c2a08b7
Bump caldav to 1.3.8 ()
* Bump caldav to 1.3.8

1.3.8 fixes a bug where duplicate STATUS properties would be emitted for a single VTODO depending on the case of the arguments used.

That bug meant that even though that is the intended API usage, passing lowercase for the status argument name would be rejected by caldav servers checking conformance with the spec which forbids duplicate STATUS.

This in turn prevented HomeAssistant to add new items to a caldav todo list.

Bump the requirements to 1.3.8 to repair that feature

* Update global requirements
2023-12-11 19:42:52 -08:00
Erik Montnemery
d4cf049016
Remove unneeded class _EntityDescriptionBase () 2023-12-11 23:10:11 +01:00
Maciej Bieniek
bf93929826
Add support for Shelly Gen3 devices ()
* Add support for Gen3 devices

* Add RPC_GENERATIONS const

* Add gen3 to tests

* More tests

* Add BLOCK_GENERATIONS const

* Use *_GENERATIONS constants from aioshelly
2023-12-11 22:58:56 +01:00
Erwin Douna
662e19999d
Add Fastdotcom DataUpdateCoordinator ()
* Adding DataUpdateCoordinator

* Updating and adding test cases

* Optimizing test

* Fix typing

* Prevent speedtest at startup

* Removing typing on Coordinator

* Update homeassistant/components/fastdotcom/coordinator.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Putting back typing

* Update homeassistant/components/fastdotcom/__init__.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Adding proper StateType typing

* Fix linting

* Stricter typing

* Creating proper test case for coordinator

* Fixing typo

* Patching librbary

* Adding unavailable state test

* Putting back in asserts

* Update tests/components/fastdotcom/test_coordinator.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Update tests/components/fastdotcom/test_coordinator.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Update tests/components/fastdotcom/test_coordinator.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Update tests/components/fastdotcom/test_coordinator.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Update tests/components/fastdotcom/test_coordinator.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Coordinator workable proposal

* Update tests/components/fastdotcom/test_coordinator.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Working test cases

* Update tests/components/fastdotcom/test_coordinator.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Update tests/components/fastdotcom/test_coordinator.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Update tests/components/fastdotcom/test_coordinator.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Update tests/components/fastdotcom/test_coordinator.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Fixing tests and context

* Fix the freezer interval to 59 minutes

* Fix test

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-12-11 22:28:04 +01:00
Joost Lekkerkerker
a187a39f0b
Add config flow to Suez water ()
* Add config flow to Suez water

* fix tests

* Complete coverage

* Change version to 2024.7

* Fix final test

* Add issue when import is successful

* Move hassdata

* Do unique_id

* Remove import issue when entry already exists

* Remove import issue when entry already exists
2023-12-11 22:06:16 +01:00
J. Nick Koston
e890671192
Relocate Bluetooth manager to habluetooth library ()
* Relocate Bluetooth manager to habluetooth library

* Relocate Bluetooth manager to habluetooth library

* Relocate Bluetooth manager to habluetooth library

* fixes

* fix patching time

* fix more tests

* fix more tests

* split

* Bump habluetooth to 0.7.0

changelog: https://github.com/Bluetooth-Devices/habluetooth/compare/v0.6.1...v0.7.0

This is the big change that will move the manager so the HA
PR that will follow this will be a bit larger than the rest of them
since the manager is connected to everything

* fix types

* fix types

* fix types

* fix patch targets

* fix flakey logbook tests (will need another PR)

* mock shutdown

* bump again

* value can be a float now

* Revert "value can be a float now"

This reverts commit b7e7127143.

* float
2023-12-11 15:42:00 -05:00
Erwin Douna
0dc61b3493
Add typing in Melcloud config flow ()
* Add typing in config flow

* Patching functions with typing
2023-12-11 20:30:19 +01:00
Erik Montnemery
dd338799d4
Make it possible to inherit EntityDescription in frozen and mutable dataclasses () 2023-12-11 20:00:55 +01:00
Joakim Plate
bb0d082b25
Correctly report unavailable battery for value 255 of percentage ()
* Ignore unavailable battery level for zha

* Adjust unavailable test
2023-12-11 19:17:06 +01:00
Stefan Agner
837ce99e30
Add Raspberry Pi 5 specific container image () 2023-12-11 17:39:48 +01:00
starkillerOG
d1ea04152a
Bump reolink_aio to 0.8.3 () 2023-12-11 17:37:15 +01:00
Marc Mueller
6c2b3ef950
Update typing-extensions to 4.9.0 () 2023-12-11 17:30:24 +01:00
Michael Hansen
80607f7750
Disconnect before reconnecting to satellite ()
Disconnect before reconnecting
2023-12-11 11:18:46 -05:00
Marc Mueller
b71f488d3e
Update pylint to 3.0.3 () 2023-12-11 17:04:07 +01:00
Erik Montnemery
94fd7d0353
Improve test of config entry store ()
* Improve test of config entry store

* Tweak test
2023-12-11 10:48:12 -05:00
Alex Thompson
4c0fda9ca0
Fix Lyric LCC thermostats auto mode () 2023-12-11 16:27:02 +01:00
jan iversen
3963f59121
Reduce modbus validator for "swap" (remove special handling) () 2023-12-11 16:12:32 +01:00
Stefan Agner
44e54e11d8
Follow Alpine 3.18 raspberrypi package updates ()
Alpine 3.18 renamed the packages raspberrypi and raspberrypi-libs to
raspberrypi-userland and raspberrypi-userland-libs respectively. Follow
that rename. With this moderniziation raspistill and friends now gets
deployed to /usr/bin, which makes any symlinks obsolete.

Note that there is and was never a 64-bit variant of raspistill. So
these symlinks were essentially useless all along.

This effectively doesn't change anything for users: Alpine automatically
installed the renamed package already and Home Assistant Core picked
up the raspistill binary from /usr/bin already.
2023-12-11 15:58:51 +01:00
Denis Shulyaka
1242456ff1
Bump openai end switch from dall-e-2 to dall-e-3 ()
* Bump openai

* Fix tests

* Apply suggestions from code review

* Undo conftest changes

* Raise repasir issue

* Explicitly use async mock for chat.completions.create

It is not always detected correctly as async because it uses a decorator

* removed duplicated message

* ruff

* Compatibility with old pydantic versions

* Compatibility with old pydantic versions

* More tests

* Apply suggestions from code review

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* Apply suggestions from code review

---------

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2023-12-11 09:47:26 -05:00
G Johansson
c0314cd05c
Make Workday UI setup nicer () 2023-12-11 14:06:29 +01:00
Jan Rieger
cedac41407
Bump python-holidays to 0.38 () 2023-12-11 13:18:23 +01:00
Joost Lekkerkerker
32681acc79
Remove Aftership import issue when entry already exists () 2023-12-11 12:09:43 +01:00
Jan-Philipp Benecke
47819bde4f
Migrate sonarr tests to use freezegun () 2023-12-11 10:47:51 +01:00
Jan-Philipp Benecke
b4731674f8
Migrate octoprint tests to use freezegun () 2023-12-11 10:42:16 +01:00
Bouwe Westerdijk
3e3f9cf092
Bump plugwise to v0.35.3 () 2023-12-11 10:29:50 +01:00
Jan-Philipp Benecke
fbfe434e8b
Migrate tag & tts tests to use freezegun () 2023-12-11 09:09:23 +01:00
Jon Caruana
c89c2f9392
Bump pylitejet to v0.6.0 () 2023-12-11 08:40:13 +01:00
J. Nick Koston
c634e3f0ca
Bump zeroconf to 0.128.4 ()
* Bump zeroconf to 0.128.3

significant bug fixes

changelog: https://github.com/python-zeroconf/python-zeroconf/compare/0.128.0...0.128.3

* .4
2023-12-11 07:47:53 +01:00
Allen Porter
72c6eb8885
Bump ical to 6.1.1 () 2023-12-10 15:46:27 -08:00
Jan Schneider
77c722630e
Check if heat area exists when setting up valve opening and battery sensors in moehlenhoff alpha2 ()
Check whether the referenced heat area exists

when setting up valve opening and battery sensors
2023-12-10 23:59:54 +01:00
Brandon Rothweiler
58d9d0daa5
Add reauth to A. O. Smith integration ()
* Add reauth to A. O. Smith integration

* Validate reauth uses the same email address

* Only show password field during reauth
2023-12-10 14:30:24 -08:00
Erik Montnemery
b5af987a18
Bump hatasmota to 0.8.0 ()
* Bump hatasmota to 0.8.0

* Keep devices with deep sleep support always available

* Add tests
2023-12-10 23:16:06 +01:00
Allen Porter
4752d37df7
Fix fitbit oauth reauth debug logging () 2023-12-10 23:09:58 +01:00
Jan Bouwhuis
a7155b154e
Fix alexa calling not featured cover services ()
* Fix alexa calls not supported cover services

* Follow up comment and additional tests
2023-12-10 17:27:01 +01:00
Florian B
063ac53f01
Fix adding/updating todo items with due date in CalDAV integration ()
* refactor: return date/datetime for due date

* fix: explicitly set due date on vTODO component

Using `set_due` automatically handles converting the Python-native
date/datetime values to the correct representation required by RFC5545.

* fix: fix tests with changed due date handling

* fix: item.due may not be a str

* refactor: keep local timezone of due datetime

* refactor: reorder import statement

To make ruff happy.

* fix: fix false-positive mypy error
2023-12-10 08:23:05 -08:00
Franck Nijhof
6a3c422d2f
Improve Amazon Alexa endpoint validation ()
* Improve Amazon Alexa endpoint validation

* Add source comment

---------

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
2023-12-10 13:38:10 +01:00
Jan-Philipp Benecke
ff85d0c290
Migrate mqtt tests to use freezegun () 2023-12-10 09:25:16 +01:00
Brett Adams
1cc47c0553
Add reauth to Tessie ()
* First pass at Tessie

* Working POC

* async_step_reauth

* Config Flow tests

* WIP

* Add test requirement

* correctly gen test requirements

* 100% coverage

* Remove remnants of copy paste

* Add TPMS

* Fix docstring

* Remove redundant line

* Fix some more copied docstrings

* Grammar

* Create reusable StrEnum

* Streamline get

* Add a couple more sensors

* Removed need for a model

* Move MODELS

* Remove DOMAIN from config flow

* Add translation strings

* Remove unused parameter

* Simplify error handling

* Refactor coordinator to class

* Add missing types

* Add icon to shift state

* Simplify setdefault

Co-authored-by: J. Nick Koston <nick@koston.org>

* Use walrus for async_unload_platforms

Co-authored-by: J. Nick Koston <nick@koston.org>

* Reformat entity init

Co-authored-by: J. Nick Koston <nick@koston.org>

* Remove Unique ID

* Better Config Flow Tests

* Fix all remaining tests

* Standardise docstring

* Remove redudnant test

* Set TessieDataUpdateCoordinator on entity

* Correct some sensors

* add error types

* Make shift state a ENUM sensor

* Add more sensors

* Fix translation string

* Add precision suggestions

* Move session from init to coordinator

* Add api_key type

* Remove api_key parameter

* Meta changes

* Update TessieEntity and TessieSensor translations

* Goodbye translation keys

* bump tessie-api to 0.0.9

* Fix only_active to be True

* Per vehicle coordinator

* Rework coordinator

* Fix coverage

* WIP

* The grand rework

* Add comments

* Use ENUM more

* Add ENUM translations

* Update homeassistant/components/tessie/sensor.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Add entity_category

* Remove reauth

* Remove session

* Update homeassistant/components/tessie/__init__.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Add property tag

* Add error text

* Complete config flow tests

* Fix property and rename

* Fix init test

* Reworked coordinator tests

* Add extra checks

* Update homeassistant/components/tessie/__init__.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/tessie/coordinator.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Apply suggestions from code review

Co-authored-by: J. Nick Koston <nick@koston.org>

* Ruff fix

* Update homeassistant/components/tessie/config_flow.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Remove future ENUMs

Co-authored-by: J. Nick Koston <nick@koston.org>

* Ruff fix

* Update homeassistant/components/tessie/config_flow.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Remove reauth and already configured strings

* Lowercase sensor values for translation

* Update homeassistant/components/tessie/__init__.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Fixed, before using lambda

* Add value lambda

* fix lambda

* Fix config flow test

* @bdraco fix for 500 errors

* format

* Add reauth

* Reuse string in reauth

* Ruff

* remove redundant check

* Improve error tests

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-09 23:37:57 -08:00
elmurato
7b32e4142e
Make API init async in Minecraft Server ()
* Make api init async

* Remove duplicate assignment of address and set server to None in constructor
2023-12-09 21:15:48 -08:00
Jan-Philipp Benecke
a8148cea65
Migrate roku tests to use freezegun () 2023-12-09 12:47:19 -10:00
Brett Adams
64a5271a51
Add Tessie Integration ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-09 12:46:32 -10:00
vexofp
327016eaeb
Accept HTTP 200 through 206 as success for RESTful Switch () 2023-12-09 12:45:33 -10:00
Raman Gupta
4e1677e3f0
Remove zwave_js device on device reset ()
* Reload zwave_js config entry on device reset

* remove device

* Just remove the device and don't reload

* revert change to notification message

* Assert device is no longer there
2023-12-09 23:33:31 +01:00
vexofp
885410bcfc
Prevent duplicate default SSLContext instances ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-09 11:30:12 -10:00
Jan-Philipp Benecke
a090bcb8a5
Migrate time_date tests to use freezegun () 2023-12-09 21:35:52 +01:00
J. Nick Koston
a0bf170fb4
Avoid ffmpeg subprocess for many component tests () 2023-12-09 19:41:37 +01:00
mkmer
c96a588934
Fix service missing key in Blink ()
* fix update service
refactor service yaml

* Remove leftover target
2023-12-09 19:18:59 +01:00
Maciej Bieniek
35b733fa2c
Bump aioshelly to version 7.0.0 ()
* Remove get_rpc_device_sleep_period() function

* Bump aioshelly version to 7.0.0

* Remove firmware compatibility check from BLE scanner

* Remove firmware compatibility check from light transition

* Update default fw ver

* Use LightEntityFeature in tests
2023-12-09 17:12:05 +02:00
G Johansson
f37f40c338
Fix preset modes error in Smartthings () 2023-12-09 13:49:32 +01:00