Commit graph

16255 commits

Author SHA1 Message Date
Paulus Schoutsen
19dcc8c88f
Re-run expose entities migration if first time failed ()
* Re-run expose entities migration if first time failed

* Count number of exposed entities

* Add tests

---------

Co-authored-by: Erik <erik@montnemery.com>
2023-05-05 08:11:09 -04:00
DDanii
9ce062411d
Fix transmission error handling ()
* transmission error handle fix

* added unexpected case tests
2023-05-05 08:42:51 +02:00
puddly
5f22b0c6cc
Handle invalid ZHA cluster handlers ()
* Do not crash on startup when an invalid cluster handler is encountered

* Add a unit test
2023-05-04 20:02:17 -04:00
Franck Nijhof
80e9219546
Add entity descriptions to sensors of Rituals Perfume Genie () 2023-05-04 20:12:52 +02:00
Jan Bouwhuis
56dcb908bc
Wait for mqtt client to become available () 2023-05-04 19:48:32 +02:00
Franck Nijhof
dd3ae96d5f
Add entity descriptions to numbers of Rituals Perfume Genie () 2023-05-04 19:13:05 +02:00
J. Nick Koston
7987b00d89
Fix blocking I/O in the event loop when starting ONVIF () 2023-05-04 12:05:29 -05:00
Erik Montnemery
887e656570
Small improvement of assist_pipeline test coverage () 2023-05-04 19:01:41 +02:00
Erik Montnemery
e14be8b0ab
Force migration of cloud settings to exposed_entities () 2023-05-04 09:53:28 -04:00
J. Nick Koston
9b74cb9507
Fix lifx light strips when color zones are not initially populated ()
fixes 
2023-05-04 08:55:47 -04:00
epenet
71b86e9f97
Fix lingering timer in sabnzbd () 2023-05-04 12:19:40 +02:00
epenet
a4a795e35b
Fix lingering timer in kira tests () 2023-05-04 11:28:05 +02:00
epenet
6836e15d98
Add type hints to tests () 2023-05-04 11:25:35 +02:00
epenet
3b4828d736
Drop tmpdir from media_source tests () 2023-05-04 11:24:29 +02:00
Michael Hansen
aa78962a9a
Pass OPUS payload ID through VoIP () 2023-05-03 19:43:14 +02:00
Erik Montnemery
a9d8bc989e
Migrate cloud settings for all Google entities () 2023-05-03 18:56:48 +02:00
Erik Montnemery
51be90d87e
Migrate cloud settings for all Alexa entities ()
* Migrate cloud settings for all Alexa entities

* Also set settings for unknown entities
2023-05-03 12:39:27 -04:00
Michael Hansen
74560ab139
Skip unexposed entities in intent handlers ()
* Filter intent handler entities by exposure

* Add test for skipping unexposed entities
2023-05-03 12:18:31 -04:00
Erik Montnemery
f089f52504
Update cloud WS API for getting entity ()
* Update cloud WS API for getting entity

* Adjust comment
2023-05-03 17:06:42 +02:00
Erik Montnemery
470c3a0f5f
Use exposed_entities API in cloud tests () 2023-05-03 16:50:43 +02:00
Erik Montnemery
b71f98e8b7
Include all entities in cloud lists () 2023-05-03 16:14:04 +02:00
Erik Montnemery
31de1b17e8
Allow setting google disable 2fa flag on any entity ()
* Allow setting google disable 2fa flag on any entity

* Fix test

* Include disable_2fa flag in cloud/google_assistant/entities/get
2023-05-03 09:55:38 -04:00
Erik Montnemery
0126cfa9d9
Allow exposing any entity to the default conversation agent ()
* Allow exposing any entity to the default conversation agent

* Tweak

* Fix race, update tests

* Update tests
2023-05-03 09:45:54 -04:00
Erik Montnemery
4860a8d1e8
Don't use storage collection helper in ExposedEntities ()
* Don't use storage collection helper in ExposedEntities

* Fix tests
2023-05-03 12:39:22 +02:00
Erik Montnemery
7aa94f97c0
Improve exposed entities tests () 2023-05-03 10:49:01 +02:00
Paulus Schoutsen
1baa4d5109
Fix deserialize bug + add test coverage () 2023-05-02 22:38:54 -04:00
Erik Montnemery
e3c16e634b
Allow exposing entities not in the entity registry to assistants () 2023-05-02 22:08:09 +02:00
Franck Nijhof
a7088e767e
Migrate unique IDs of Rituals Perfume Genie ()
* Migrate unique IDs of Rituals Perfume Genie

* Fix doc string
2023-05-01 22:46:38 +02:00
Michael Hansen
b1d6f3afc0
Allow configuring SIP port in VoIP ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-05-01 22:42:27 +02:00
David F. Mulcahey
2bc2c4a651
Don't poll ZHA electrical measurement sensors unnecessarily () 2023-05-01 18:32:40 +02:00
G Johansson
9795699669
Fix db_url issue in SQL ()
* db_url fix

* Add test

* assert entry.options
2023-05-01 16:17:01 +02:00
Luke
7b5d26d3fa
Bump anova version ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-05-01 11:15:29 +02:00
Allen Porter
e7433c42b9
Cleanup code from nest yaml migration and OOB auth deprecation () 2023-04-30 18:00:40 -07:00
Raman Gupta
c0d0c89293
Add time platform () 2023-04-30 22:33:51 +02:00
Franck Nijhof
5cbf08f89a
Only store and pass around coordinator in Rituals Perfume Genie () 2023-04-30 21:32:14 +02:00
J. Nick Koston
bb4c03ce3c
Avoid returning statistics columns that the metadata knows are impossible () 2023-04-30 20:46:26 +02:00
Raman Gupta
d138bbe26e
Add date platform () 2023-04-30 20:34:57 +02:00
epenet
b969790e95
Use SnapshotAssertion in Renault tests () 2023-04-30 18:55:31 +02:00
Joost Lekkerkerker
cd52e05075
Move lastfm constants to separate file () 2023-04-30 18:09:02 +02:00
Jan Bouwhuis
7a43b29f38
Fix mqtt not available when starting snips () 2023-04-30 17:35:24 +02:00
J. Nick Koston
193b2694a9
Handle AttributeError from wrong port in ONVIF config flow ()
* Handle AttributeError from wrong port in ONVIF config flow

fixes
```
2023-04-29 19:17:22.289 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/Users/bdraco/home-assistant/venv/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
    resp = await request_handler(request)
  File "/Users/bdraco/home-assistant/venv/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/Users/bdraco/home-assistant/venv/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/Users/bdraco/home-assistant/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware
    return await handler(request)
  File "/Users/bdraco/home-assistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
    return await handler(request)
  File "/Users/bdraco/home-assistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
  File "/Users/bdraco/home-assistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
    return await handler(request)
  File "/Users/bdraco/home-assistant/homeassistant/components/http/auth.py", line 235, in auth_middleware
    return await handler(request)
  File "/Users/bdraco/home-assistant/homeassistant/components/http/view.py", line 146, in handle
    result = await result
  File "/Users/bdraco/home-assistant/homeassistant/components/config/config_entries.py", line 180, in post
    return await super().post(request, flow_id)
  File "/Users/bdraco/home-assistant/homeassistant/components/http/data_validator.py", line 72, in wrapper
    result = await method(view, request, data, *args, **kwargs)
  File "/Users/bdraco/home-assistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
    result = await self._flow_mgr.async_configure(flow_id, data)
  File "/Users/bdraco/home-assistant/homeassistant/data_entry_flow.py", line 271, in async_configure
    result = await self._async_handle_step(
  File "/Users/bdraco/home-assistant/homeassistant/data_entry_flow.py", line 367, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
  File "/Users/bdraco/home-assistant/homeassistant/components/onvif/config_flow.py", line 233, in async_step_configure
    errors, description_placeholders = await self.async_setup_profiles()
  File "/Users/bdraco/home-assistant/homeassistant/components/onvif/config_flow.py", line 277, in async_setup_profiles
    await device.update_xaddrs()
  File "/Users/bdraco/home-assistant/venv/lib/python3.10/site-packages/onvif/client.py", line 433, in update_xaddrs
    capabilities = await devicemgmt.GetCapabilities({"Category": "All"})
  File "/Users/bdraco/home-assistant/venv/lib/python3.10/site-packages/zeep/proxy.py", line 64, in __call__
    return await self._proxy._binding.send_async(
  File "/Users/bdraco/home-assistant/venv/lib/python3.10/site-packages/zeep/wsdl/bindings/soap.py", line 164, in send_async
    return self.process_reply(client, operation_obj, response)
  File "/Users/bdraco/home-assistant/venv/lib/python3.10/site-packages/zeep/wsdl/bindings/soap.py", line 204, in process_reply
    doc = parse_xml(content, self.transport, settings=client.settings)
  File "/Users/bdraco/home-assistant/venv/lib/python3.10/site-packages/zeep/loader.py", line 51, in parse_xml
    docinfo = elementtree.getroottree().docinfo
AttributeError: NoneType object has no attribute getroottree
```

* port

* Revert "port"

This reverts commit 4693f3f33a.

* misfire
2023-04-29 21:17:56 -04:00
J. Nick Koston
1a82b353e0
Auto repair incorrect collation on MySQL schema ()
* Auto repair incorrect collation on MySQL schema

As we do more union queries in 2023.5.x if there is a mismatch
between collations on tables, they will fail with an error
that is hard for the user to figure out how to fix

`Error executing query: (MySQLdb.OperationalError) (1271, "Illegal mix of collations for operation UNION")`

This was reported in the #beta channel and by PM from others
so the problem is not isolated to a single user

https://discord.com/channels/330944238910963714/427516175237382144/1100908739910963272

* test with ascii since older maraidb versions may not work otherwise

* Revert "test with ascii since older maraidb versions may not work otherwise"

This reverts commit 787fda1aefcd8418a28a8a8f430e7e7232218ef8.t

* older version need to check collation_server because the collation is not reflected if its the default
2023-04-29 21:17:09 -04:00
Robert Hillis
a5044227a8
Fix Google Mail Sensor key error ()
Fix Google Mail key error
2023-04-29 20:20:43 -04:00
Michael Hansen
c35aabe497
Add VoIP error tone ()
* Play error tone when pipeline error occurs

* Play listening tone at the start of each cycle
2023-04-29 15:24:56 -04:00
J. Nick Koston
11131070ab
Bump pyunifiprotect to 4.8.3 () 2023-04-29 18:59:44 +02:00
IceBotYT
d23bd2ad68
Add diagnostics to LaCrosse View () 2023-04-29 18:53:40 +02:00
Franck Nijhof
37723792c7
Fix unknown/unavailable source sensor in Filter entities () 2023-04-29 17:47:04 +02:00
rikroe
1028841690
Move BMW Target SoC to number platform ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2023-04-29 17:41:34 +02:00
Franck Nijhof
acc4b001cd
Fix history YAML deprecation () 2023-04-29 08:02:34 -04:00
epenet
7dfbfd45ae
Cleanup onewire tests () 2023-04-29 11:18:16 +02:00