Commit graph

61640 commits

Author SHA1 Message Date
Franck Nijhof
565b26e884
Fix tts add-on discovery for Wyoming () 2023-04-26 08:04:46 -05:00
Matthias Alphart
0b9fbb1800
Fix typo in Nextcloud YAML deprecation message () 2023-04-26 13:51:47 +02:00
Erik Montnemery
2750a5c3e6
Make assist_pipeline an after dependency of cloud () 2023-04-26 13:45:32 +02:00
Erik Montnemery
ed737f306b
Remove cloud assist pipeline setup from cloud client () 2023-04-26 06:53:58 -04:00
J. Nick Koston
6b931b208f
Small cleanups to bluetooth internals ()
* Small cleanups to bluetooth internals

Improve the performance of _async_on_advertisement

Fixes

```
tests/components/bluetooth/test_models.py::test_ble_device_with_proxy_client_out_of_connections_uses_best_available
tests/components/bluetooth/test_models.py::test_ble_device_with_proxy_client_out_of_connections_uses_best_available_macos
  /Users/bdraco/home-assistant/homeassistant/components/bluetooth/wrappers.py:226: FutureWarning: This method will be removed future version, pass the callback to the BleakClient constructor instead.
    self._backend.set_disconnected_callback(

tests/components/bluetooth/test_models.py::test_ble_device_with_proxy_client_out_of_connections_uses_best_available_macos
  /Users/bdraco/home-assistant/tests/components/bluetooth/test_models.py:506: FutureWarning: BLEDevice.metadata is deprecated and will be removed in a future version of Bleak, use AdvertisementData instead
    switchbot_proxy_device_no_connection_slot.metadata["delegate"] = 0

tests/components/bluetooth/test_models.py::test_ble_device_with_proxy_client_out_of_connections_uses_best_available_macos
  /Users/bdraco/home-assistant/tests/components/bluetooth/test_models.py:521: FutureWarning: BLEDevice.metadata is deprecated and will be removed in a future version of Bleak, use AdvertisementData instead
    switchbot_proxy_device_has_connection_slot.metadata["delegate"] = 0

tests/components/bluetooth/test_models.py::test_ble_device_with_proxy_client_out_of_connections_uses_best_available_macos
  /Users/bdraco/home-assistant/tests/components/bluetooth/test_models.py:535: FutureWarning: BLEDevice.metadata is deprecated and will be removed in a future version of Bleak, use AdvertisementData instead
    switchbot_device.metadata["delegate"] = 0

```

* put back kwargs
2023-04-26 11:16:34 +02:00
Joakim Sørensen
c429bfae3e
Bump hass-nabucasa from 0.66.1 to 0.66.2 () 2023-04-26 10:47:41 +02:00
J. Nick Koston
cf69da40f3
Only check support_entry_unload/support_remove_from_device once () 2023-04-26 10:23:18 +02:00
Ondřej Kolenatý
5399dfd39d
Set forecast-solar energy sensor's units of measurement to Wh ()
* All energy units of measurement changed to Wh.

* All energy units of measurement changed to Wh.
2023-04-26 10:09:30 +02:00
Robert Svensson
09109d093e
Allow UniFi control PoE passthrough properly () 2023-04-26 09:16:18 +02:00
J. Nick Koston
828aed73af
Bump zeroconf to 0.58.2 () 2023-04-26 09:14:34 +02:00
J. Nick Koston
5f1fc3259c
Bump aioesphomeapi to 13.7.2 () 2023-04-26 09:12:52 +02:00
Michael Hansen
8dfecac013
Time out TTS based on audio length ()
* Time out TTS based on audio length

* Use async mock
2023-04-26 00:35:14 -04:00
Michael Hansen
257944c3b7
Allow numbers in TTS engine part of cache key () 2023-04-26 00:33:45 -04:00
Raman Gupta
3190e5d7cf
Add button entities to manually idle zwave notification values ()
* Add button entities to manually idle zwave notification values

* Update discovery.py

* Improve discovery check

* fix tests

* make unique ID more clear
2023-04-25 21:41:29 -04:00
Erik Montnemery
57a59d808b
Automaticially create an assist pipeline using cloud stt + tts ()
* Automaticially create an assist pipeline using cloud stt + tts

* Return the id of the cloud enabled pipeline

* Wait for platforms to load

* Fix typing

* Fix startup race

* Update tests

* Create a cloud pipeline only when logging in

* Fix tests

* Tweak _async_resolve_default_pipeline_settings

* Improve assist_pipeline test coverage

* Improve cloud test coverage
2023-04-25 20:40:01 -05:00
J. Nick Koston
74e0341d83
Bump yalexs-ble to 2.1.16 () 2023-04-25 18:53:08 -05:00
puddly
6842cdcb65
Clean up default ZHA entity names ()
* Always use `Light` for lights, including subclasses

* Clean up other platforms

* Add a unit test to ensure all future entity classes have names

* Remove stale `_name`

* Address review feedback and rename `Open` to `Opening`
2023-04-25 19:51:39 -04:00
shbatm
da05763a5c
ISY994 remove value when calling open cover with no position () 2023-04-25 18:17:11 -05:00
shbatm
969db343bd
Invert ISY994 dusk/dawn sensors to match expected state () 2023-04-25 17:15:48 -05:00
nachonam
2d510bfe0d
Add camera platform to Freebox ()
* Add Freebox cameras

* Apply suggestions from code review

add code corrections after PR review

Co-authored-by: Quentame <polletquentin74@me.com>

* Update base_class.py

* add some code syntax corrections add unit tests

* add unit tests

* add syntax changes

* Update homeassistant/components/freebox/router.py

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/router.py

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/base_class.py

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/router.py

Co-authored-by: Quentame <polletquentin74@me.com>

* clear code  and add minor changes

* correct syntax error and check home granted access

* typing functions

* Update tests/components/freebox/conftest.py

don't needed, and will fix tests.

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/camera.py

Rename _volume_micro variable

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/camera.py

Use const not literal

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/camera.py

set to true not needed

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/camera.py

use _attr_supported_features instead _supported_features

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/camera.py

overload the entity with command_flip property and set_flip not needed

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/camera.py

Cameras does not default to False,

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/camera.py

delete this function because is not needed

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/camera.py

Co-authored-by: Quentame <polletquentin74@me.com>

* consts,  rollback _command flip is protected var

* VALUE_NOT_SET does not exists anymore

* Use HOME_COMPATIBLE_PLATFORMS

* Rename FreeboxHomeBaseClass to FreeboxHomeEntity

* Update Freebox Home comment

* Use CATEGORY_TO_MODEL to set model attr of FreeboxHomeEntity

* Use Home API from the router

* Add SERVICE_FLIP const

* Use SERVICE_FLIP const

* Fix typo in HOME_COMPATIBLE_PLATFORMS

* fix somme code issues

* use SERVICE_FLIP (lost in merge)

* use _attr_device_info

* clear code

* HOME_COMPATIBLE_PLATFORMS is a list

* Update homeassistant/components/freebox/home_base.py

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/home_base.py

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/config_flow.py

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/home_base.py

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/home_base.py

Co-authored-by: Quentame <polletquentin74@me.com>

* clear config_flow permission

* Update homeassistant/components/freebox/home_base.py

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/camera.py

Co-authored-by: Quentame <polletquentin74@me.com>

* add untested files to. coveragerc

* clear unused attributes

* add not tested file camera.py

* clear unusued const

* add extra_state_attributes

* Update .coveragerc

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/camera.py

Co-authored-by: Quentame <polletquentin74@me.com>

* fetch _flip

* del flip service

* add device_info via_device

* Update .coveragerc

* Update .coveragerc

* Update .coveragerc

* Update .coveragerc

* Remove flip reference

* Fix issue on router without Home API

* Fix "Home access is not granted" log repeats every 30s

* Fix sensor device_info

---------

Co-authored-by: Quentame <polletquentin74@me.com>
2023-04-26 00:03:39 +02:00
Jan Bouwhuis
62bb584522
Add note for using xfail on test for mqtt_statestream ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-04-25 22:49:47 +02:00
Jan Bouwhuis
aab7dffdb9
Only expose MQTT advanced settings in advanced mode () 2023-04-25 22:23:17 +02:00
Martin Hjelmare
0594fefb0c
Clean up tts fixtures () 2023-04-25 22:21:18 +02:00
Maciej Bieniek
5244f5731e
Do not reload Shelly TRV config entry () 2023-04-25 22:20:59 +02:00
Michel van de Wetering
ee3cebe37b
Enable open,close,stop device actions for all covers () 2023-04-25 22:19:37 +02:00
Erik Montnemery
18f7b92438
Fall back to domain for conversation agents without title () 2023-04-25 22:14:44 +02:00
Raman Gupta
78a49ecbce
Bump zwave-js-server-python to 0.48.0 ()
* Bump zwave-js-server-python to 0.48.0

* Add handling of FailedZWaveCommand exception

* Reset mock to avoid unintentional side effects

* Fix bump
2023-04-25 15:41:37 -04:00
Dave T
dedb3f8b6b
Fix comment typos () 2023-04-25 21:04:36 +02:00
Erik Montnemery
64cbc91697
Use addon uuid as wyoming config entry unique id () 2023-04-25 21:04:11 +02:00
Arjan
74e3cac8b5
Fix timezone issue () 2023-04-25 21:02:02 +02:00
Joakim Sørensen
083f42cce6
Bump hass-nabucasa from 0.65.0 to 0.66.1 () 2023-04-25 21:00:23 +02:00
Daniel Hjelseth Høyer
9d3a0d676a
Update tibber lib to 0.27.1 () 2023-04-25 13:40:48 -05:00
J. Nick Koston
2354f8194e
Add reauth to onvif ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-04-25 12:20:17 -05:00
Erik Montnemery
8e70446ef8
Tweak a couple of stt and tts related asserts ()
Tweak a couple of stt and tts related asserts
2023-04-25 11:50:37 -05:00
Erik Montnemery
933761d425
Fix cloud connected signal only firing once () 2023-04-25 12:15:27 -04:00
Alberto Geniola
dae05a0c93
Add check on disarm code for Alarm Control Panel - Elmax () 2023-04-25 17:56:01 +02:00
Erik Montnemery
792ea92e55
Remove fuzzy language matching from stt and tts ()
* Remove fuzzy language matching from stt and tts

* Update tests
2023-04-25 17:54:42 +02:00
Clay Benson
d1e6e4078c
Bump asyncsleepiq lib to 1.3.4 () 2023-04-25 09:54:32 -05:00
J. Nick Koston
e7e7990b60
Bump sqlalchemy to 2.0.10 () 2023-04-25 09:45:49 -05:00
Alberto Geniola
aa1304e93a
Elmax/sensors improvements ()
* Address suggestions in PR 

* Remove redundant force-refresh at discovery time

* Improve re-auth UX

* Resolve linting warning

* Cover reauth case when no entry is in place

* Add missing reauth_successful message

* Use ad-hoc schema for reauth flow

* Align test cases with latest modifications

* Improve re-authentication flow, align tests

* Remove None check (as it can never happen)

* Remove panel_id from reauth dialog

* Remove panel_id from reauth dialog

* Simplify try-catch block

* Address suggestions in PR 

* Remove redundant force-refresh at discovery time

* Improve re-auth UX

* Resolve linting warning

* Cover reauth case when no entry is in place

* Add missing reauth_successful message

* Use ad-hoc schema for reauth flow

* Align test cases with latest modifications

* Improve re-authentication flow, align tests

* Remove None check (as it can never happen)

* Remove panel_id from reauth dialog

* Remove panel_id from reauth dialog

* Simplify try-catch block

* Improve type handling

* Remove translations

* Add unique-id attribute within context object

* Optimize local variable usage
2023-04-25 15:40:46 +02:00
Diogo Gomes
a3048234d3
Support for multiple contracts in Prosegur ()
* support for multiple contracts - tested live

* update tests

* address review

* address review

* fix
2023-04-25 15:16:51 +02:00
G Johansson
1fa82fa886
Move TriggerBaseEntity into helpers ()
* Move TriggerBaseEntity

* mypy
2023-04-25 09:56:40 +02:00
Stephan Uhle
b56f0ad668
Remove unused attributes in EDL21 integration () 2023-04-25 09:50:23 +02:00
Diogo Gomes
48546c77b5
Follow the unavailability of the source sensor () 2023-04-25 09:49:58 +02:00
Erik Montnemery
63f3767a29
Include UUID in hassio discovery data () 2023-04-25 09:48:47 +02:00
puddly
0b0573c387
Bump ZHA dependencies () 2023-04-25 09:47:22 +02:00
Michael Hansen
ebabf504da
Play pre-recorded message if pipeline is misconfigured ()
* Play pre-recorded message if pipeline is misconfigured

* Use voip_device
2023-04-24 21:48:40 -05:00
J. Nick Koston
5114a1400f
Ensure logbook still responds if describe event throws ()
* Ensure logbook still responds if describe event throws

If describe fails, the logbook stream should not collapse

* Ensure logbook still responds if describe event throws

If describe fails, the logbook stream should not collapse
2023-04-24 22:22:53 -04:00
J. Nick Koston
18532e453a
Bump home-assistant-bluetooth to 1.10.0 ()
changelog: https://github.com/home-assistant-libs/home-assistant-bluetooth/blob/main/CHANGELOG.md
2023-04-24 22:22:11 -04:00
Robert Svensson
cecd657a09
Bump aiounifi to v47 () 2023-04-24 18:06:12 -05:00