Commit Graph

46508 Commits (5b4663d2ca729545635db0e4fc29b68ec961b2b7)

Author SHA1 Message Date
G Johansson dd4a3089ec
Add constants file for Brottsplatskartan ()
* bpk constants

* not used
2023-03-23 11:54:15 +01:00
G Johansson 2b4514ae25
Add codeowner Workday ()
codeowner
2023-03-23 11:53:22 +01:00
J. Nick Koston 60ae1f99e0
Update powerwall strings for newer models () 2023-03-23 10:13:18 +01:00
J. Nick Koston 2cb4ec82df
Bump yalexs-ble to 2.1.2 () 2023-03-23 10:08:06 +01:00
On Freund 10cf92246f
Bump pyrympro to 0.0.7 () 2023-03-23 10:05:08 +01:00
rikroe 1a2fa51ac9
Bump bimmer_connected to 0.13.0 () 2023-03-23 10:01:01 +01:00
Erik Montnemery 6739542a5d
Simplify some multi pan code ()
* Simplify some multi pan code

* Adjust ZHA config flow
2023-03-23 09:18:35 +01:00
solazs b151923619
Add health mode to gree integration ()
Add health mode to gree integration.
2023-03-23 08:56:47 +01:00
Jan Bouwhuis 1e64a55a1a
Add missing translation for invalid imap folder ()
Add missing translation for invalid folder
2023-03-23 08:08:52 +01:00
J. Nick Koston 9878738321
Use rel_url for looking up frontend panels ()
* Use rel_url for looking up frontend panels

request.url builds a new URL every time where-as
rel_url is always available

https://docs.aiohttp.org/en/stable/web_reference.html#aiohttp.web.BaseRequest.rel_url

* Use rel_url for looking up frontend panels

request.url builds a new URL every time where-as
rel_url is always available

https://docs.aiohttp.org/en/stable/web_reference.html#aiohttp.web.BaseRequest.rel_url
2023-03-23 00:14:54 -04:00
Paulus Schoutsen 12352b2ce1
Always enforce URL param ordering for signed URLs ()
Always enforce URL param ordering
2023-03-22 22:54:09 -04:00
J. Nick Koston dcc52bd366
Bump PySwitchbot to 0.37.4 ()
fixes  fixes 

changelog: https://github.com/Danielhiversen/pySwitchbot/compare/0.37.3...0.37.4
2023-03-22 22:10:47 -04:00
J. Nick Koston ca576d45ac
Cache decode of JWT tokens () 2023-03-22 16:03:41 -10:00
J. Nick Koston 8a591fa16e
Add auto repairs for events schema ()
* Add auto repairs for events schema

* Add auto repairs for events schema

* Add auto repairs for events schema

* Add auto repairs for events schema

* Add auto repairs for events schema

* fix bug - wrong table
2023-03-22 21:17:36 -04:00
J. Nick Koston 31c988c4f0
Fix index not being dropped on postgresql databases with a schema prefix ()
* Fix index not being dropped on postgresql databases with a schema prefix

Added logging in case index drops fail so we can tell
why in the future

* coverage
2023-03-22 21:03:26 -04:00
J. Nick Koston 99b58f157e
Bump PyJWT to 2.6.0 ()
* Bump PyJWT to 2.6.0

* fix time being frozen too late which makes the access token creation time in the future

* revert zha change

* fix repairs test

* fix ical test
2023-03-22 20:00:47 -04:00
Michael 03aeaba7ef
Turn AVM FRITZ!Box Tools sensors into coordinator entities ()
* make sensors coordinator entities

* apply suggestions

* move _attr_has_entity_name up
2023-03-22 22:34:23 +01:00
J. Nick Koston 4ebce9746d
Add schema auto repairs for states tables () 2023-03-22 10:05:23 -10:00
Erik Montnemery 5948347b6b
Fix switch_as_x entity naming ()
* Fix switch_as_x entity naming

* Simplify name logic
2023-03-22 20:24:05 +01:00
Erik Montnemery 1ea3312ed4
Deduplicate multiprotocol addon helper ()
* Deduplicate multiprotocol addon helper

* Clarify
2023-03-22 20:20:42 +01:00
J. Nick Koston 4c98495fe0
Bump ulid-transform to 0.5.1 ()
changelog: https://github.com/bdraco/ulid-transform/compare/v0.4.2...v0.5.1
2023-03-22 15:19:43 -04:00
Erik Montnemery 3931e11fd9
Try to load integration before starting option flow ()
* Try to load integration before starting option flow

* Adjust tests
2023-03-22 20:10:10 +01:00
Franck Nijhof 6db8867b81
Update wled to 0.16.0 () 2023-03-22 13:55:50 -04:00
Erik Montnemery 94e247dc69
Fix islamic_prayer_times setup () 2023-03-22 13:52:52 -04:00
Franck Nijhof cc4ff55347
Update pvo to 1.0.0 () 2023-03-22 17:02:49 +01:00
puddly c581116c82
ZHA network settings API ()
* Rename `zha.api` to `zha.websocket_api`

* Implement a ZHA network settings API

* Use the enum name as the radio type

* Don't filter out ignored config entries

* [WIP] Start unit tests

* Add unit tests

* Rename ZHA websocket API module in `.coveragerc`

* Rename `api` to `websocket_api`

* Increase test coverage to 100%
2023-03-22 11:15:46 -04:00
Erik Montnemery 130c8ea5f5
Update OTRB config entry if REST API port has changed ()
* Update OTRB config entry if REST API port has changed

* Improve test coverage
2023-03-22 14:03:39 +01:00
Paulus Schoutsen 0ca6723378
Allow passing binary to the WS connection ()
* Allow passing binary to the WS connection

* Expand test coverage

* Test non-existing handler

* Allow signaling end of stream using empty payloads

* Store handlers in a list

* Handle binary handlers raising exceptions
2023-03-22 08:36:36 -04:00
Erik Montnemery 19d56a7102
Change error handling in async_process_play_media_url () 2023-03-22 13:32:02 +01:00
Paulus Schoutsen 9b9ed21dc4
Update hass-nabucasa to 0.62.0 () 2023-03-22 13:24:28 +01:00
Matrix 87e6dd3949
YoLink flexfob support () 2023-03-22 12:01:04 +01:00
Klaas Schoute 7efe058aa6
Bump easyEnergy to v0.2.2 () 2023-03-22 10:46:17 +01:00
Michael d25e394310
Implement data update coordinator for nextcloud ()
* implement data update coordinator

* apply suggestions

* apply suggestions
2023-03-22 09:18:09 +01:00
J. Nick Koston 96225bb287
Rename recorder run_history to table_managers.recorder_runs_manager () 2023-03-21 18:38:33 -10:00
Luke 1439a3d572
Bump to oralb-ble 0.17.6 () 2023-03-21 17:09:38 -10:00
J. Nick Koston 88ad97f112
Fix generating statistics for time periods smaller than we can measure ()
If the time period for the mean/time weighted average was smaller
than we can measure (less than one microsecond), generating
statistics would fail with a divide by zero error. This is likely
only happens if the database schema precision is incorrect.
2023-03-21 21:12:45 -04:00
Michael Hansen 0e7ffff869
Add TTS to pipelines ()
* Add text to speech and stages to pipeline

* Default to "cloud" TTS when engine is None

* Refactor pipeline request to split text/audio

* Refactor with PipelineRun

* Generate pipeline from language

* Clean up

* Restore TTS code

* Add audio pipeline test

* Clean TTS cache in test

* Clean up tests and pipeline base class

* Stop pylint and pytest magics from fighting

* Include mock_get_cache_files
2023-03-21 21:10:31 -04:00
J. Nick Koston ddcaa9d372
Break out statistics repairs into a `auto_repairs` modules ()
* Break out statistics schema repairs into a repairs module

A future PR will add repairs for events, states, etc

* reorg

* reorg

* reorg

* reorg

* fixes

* fix patch targets

* name space rename
2023-03-21 21:08:06 -04:00
J. Nick Koston 086bcfb2fc
Make recorder migration column types for each dialect constants ()
Make column types for each dialect constants
2023-03-21 21:06:10 -04:00
Franck Nijhof 980425508a
Update twentemilieu to 1.0.0 () 2023-03-21 22:31:55 +01:00
Michael d4cc4a343d
Use has_template property from lib in Fritz!SmartHome () 2023-03-21 21:33:33 +01:00
dougiteixeira 0f5c49c7be
Fix translation string for fan oscillation ()
Fix string
2023-03-21 15:42:44 -04:00
starkillerOG d20b07f3ac
Bump reolink-aio to 0.5.6 () 2023-03-21 14:16:50 -04:00
Franck Nijhof ed4e49a4c2
Add translations for Counter () 2023-03-21 18:41:27 +01:00
J. Nick Koston 616e6e6ae8
Fix missing length on context id and incorrect precision with MariaDB (dev only fix) ()
Fix missing length on context id column with MariaDB

spotted by @dcoder42

The migration still worked as intented but the blob should have been
a bit smaller.

This only affects dev so there is no need for a backport
2023-03-21 13:14:27 -04:00
epenet c507ca1e66
Improve type hints in rachio switch () 2023-03-21 15:53:51 +01:00
epenet 1895c82ffc
Fix fritzbox TypedDict definition () 2023-03-21 15:52:30 +01:00
epenet 1303dd12e7
Improve type hints in zha fan () 2023-03-21 15:21:56 +01:00
Jan Bouwhuis 6f88fe93ef
Only publish mqtt_statestream when MQTT is started ()
* Only publish mqtt_statestream when ha is started

* also catch startup states and use event filter

* Add check for MQTT to be available first

* Make sure MQTT is available and started

* Fix test

* Improve test

* Reset mock before assertung not called
2023-03-21 10:21:45 -04:00
Erik Montnemery 41ea8fa9b4
Guess media type when cast is playing media without media type () 2023-03-21 10:01:35 -04:00
epenet 93efdc4991
Improve switch and climate type hints in integrations () 2023-03-21 13:26:41 +01:00
jan iversen 9092a76dbf
Correct typing of pymodbus in modbus () 2023-03-21 13:26:03 +01:00
epenet f01f5e1d2a
Improve type hints in tuya vacuum () 2023-03-21 13:25:19 +01:00
Franck Nijhof 2a0401366b
Add state translations for all day calendar attribute () 2023-03-21 07:53:05 -04:00
Franck Nijhof 6d3c3ff4fb
Add state translations for Select entities () 2023-03-21 12:45:06 +01:00
Franck Nijhof 0467c8ff63
Add attribute state translations for oscillating fans () 2023-03-21 07:39:07 -04:00
epenet 485a78e0cf
Improve light type hints in integrations ()
* Improve light type hints in integrations

* Improve
2023-03-21 11:40:33 +01:00
epenet 33e698d67f
Improve notify type hints in integrations () 2023-03-21 11:40:19 +01:00
epenet 86b4354477
Improve native_value type hints in integrations () 2023-03-21 11:40:06 +01:00
epenet 0e1c76f81f
Improve sensor type hints in integrations ()
* Improve sensor type hints in integrations

* Improve
2023-03-21 11:39:42 +01:00
epenet 4836404288
Improve media_player type hints in integrations ()
Fix some media_player type hints
2023-03-21 11:10:12 +01:00
epenet 04872f72ea
Improve humidifier type hints in integrations ()
Fix humidifier type hints in integrations
2023-03-21 10:32:13 +01:00
epenet 292feb4e24
Enable inheritance checks on ExtraStoredData () 2023-03-21 09:51:05 +01:00
Allen Porter 43ce6f843c
Update the calendar trigger based on PR feedback () 2023-03-21 09:21:14 +01:00
Franck Nijhof 23f136e9d6
Add state translations for Siren entities () 2023-03-21 09:16:32 +01:00
epenet dd1700954b
Deprecate YAML in SamsungTV ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-03-21 09:00:17 +01:00
Tom Harris 0c0c86bf7b
Add support for new Insteon i3 devcies () 2023-03-20 21:56:44 -10:00
J. Nick Koston a8e95684fa
Fix websocket back pressure bottleneck () 2023-03-20 21:51:39 -10:00
J. Nick Koston 0303618705
Handle cancelation of wait_for_ble_connections_free in esphome bluetooth ()
Handle cancelation in wait_for_ble_connections_free

If `wait_for_ble_connections_free` was canceled due to timeout or
the esp disconnecting from Home Assistant the future would get
canceled. When we reconnect and get the next callback we need
to handle it being done.

fixes
```
2023-03-21 02:34:36.876 ERROR (MainThread) [homeassistant] Error doing job: Fatal error: protocol.data_received() call failed.
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 868, in _read_ready__data_received
    self._protocol.data_received(data)
  File "/usr/local/lib/python3.10/site-packages/aioesphomeapi/_frame_helper.py", line 195, in data_received
    self._callback_packet(msg_type_int, bytes(packet_data))
  File "/usr/local/lib/python3.10/site-packages/aioesphomeapi/_frame_helper.py", line 110, in _callback_packet
    self._on_pkt(Packet(type_, data))
  File "/usr/local/lib/python3.10/site-packages/aioesphomeapi/connection.py", line 688, in _process_packet
    handler(msg)
  File "/usr/local/lib/python3.10/site-packages/aioesphomeapi/client.py", line 482, in on_msg
    on_bluetooth_connections_free_update(resp.free, resp.limit)
  File "/usr/src/homeassistant/homeassistant/components/esphome/entry_data.py", line 136, in async_update_ble_connection_limits
    fut.set_result(free)
asyncio.exceptions.InvalidStateError: invalid state
```
2023-03-20 23:49:59 -04:00
J. Nick Koston 7158dbc142
Bump yalexs-ble to 2.1.1 ()
* Bump yalexs-ble to 2.1.1

There was another task that could be prematurely GCed

changelog: https://github.com/bdraco/yalexs-ble/compare/v2.1.0...v2.1.1

* fixes
2023-03-20 23:49:30 -04:00
Arturo 5e5ace9c4e
Add door lock device type to matter integration ()
* Adds base code for matter lock

* Adds basic matter door lock support

* Adds matter lock fixture

* Adds tests for matter lock

* Addresses feedback

* Added logic to handle inter states of matter lock

* Addesses feedback
2023-03-21 01:29:33 +01:00
Raman Gupta cbe85126cb
Introduce a delay between update entity calls ()
* Introduce a delay between update entity calls

* Update homeassistant/components/zwave_js/update.py

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

* move delay to constant and patch

* rename constant

* Switch to async_call_later

* Remove failing test

* Reimplement to solve task problem

* comment

* pass count directly so that value doesn't mutate before we store it

* lines

* Fix logic and tests

* Comments

* Readd missed coverage

* Add test for delays

* cleanup

* Fix async_added_to_hass logic

* flip conditional

* Store firmware info in extra data so we can restore it along with latest version

* Comment

* comment

* Add test for is_running check and fix bugs

* comment

* Add tests for various restore state scenarios

* move comment so it's less confusing

* improve typing

* consolidate into constant and remove unused one

* Update update.py

* update test to unknown state during partial restore

* fix elif check

* Fix type

* clean up test docstrings and function names

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-03-20 18:30:56 -04:00
epenet 18df3a22ca
Add FTTH information to SFR Box () 2023-03-20 20:06:44 +01:00
J. Nick Koston 49f08ad71d
Filter out duplicate updates in esphome state dispatch () 2023-03-20 20:04:46 +01:00
Jon Caruana 20c9ed6d89
Mark LiteJet as Platinum integration () 2023-03-20 20:01:14 +01:00
J. Nick Koston 6bb80adbb9
Rollback the session after performing stats schema validation () 2023-03-20 17:15:11 +01:00
Jan Bouwhuis 51b12cbf96
Add user_input as suggested value in imap config flow ()
Add user_input as suggested value to config_schema
2023-03-20 15:52:54 +01:00
Jan Bouwhuis e4275a053c
Remove yaml import from imap integration ()
* Remove yaml import from imap integration

* Cleanup sensor code and strings.json
2023-03-20 15:52:07 +01:00
Steven Looman 9a5ceb9ef8
Use default rounding/presentation mechanism for upnp () 2023-03-20 15:44:05 +01:00
Franck Nijhof 9949ca13aa
Adjust state class of Toon monetary sensors () 2023-03-20 08:42:59 -04:00
Franck Nijhof b9ff69d3ac
Extend attribute state translations for Camera ()
* Extend attribute state translations for Camera

* Add common generic translations
2023-03-20 08:39:20 -04:00
Malte Franken 0bf652ca96
Refactor constants in geo_json_events integration ()
move constants to separate file
2023-03-20 13:26:38 +01:00
Joakim Plate 9f1e170851
Correct missing wordswap for S series nibe ()
Correct missing wordswap for nibe
2023-03-20 12:08:27 +01:00
J. Nick Koston 146a31163c
Use bluetooth address instead of uuid on MacOS () 2023-03-20 12:07:41 +01:00
Michael e258f36ded
Remove deprecated binary update sensor from AVM FRITZ!Box Tools () 2023-03-20 12:06:40 +01:00
J. Nick Koston c3043fb0ee
Bump bluetooth deps for bleak 0.20 ()
Co-authored-by: K <z@kwi.li>
2023-03-20 12:06:15 +01:00
micha91 f3b3818d1f
Bump aiomusiccast to 0.14.8 () 2023-03-20 11:59:27 +01:00
Jesse Moody c4ee35570d
Update django github references to main instead of master branch. () 2023-03-20 10:27:55 +01:00
J. Nick Koston f62bb0e2ea
Bump zeroconf to 0.47.4 () 2023-03-20 09:32:21 +01:00
J. Nick Koston d33a303a83
Fix statistics schema µs precision auto repair being ineffective ()
If a user manually migrated their database to MySQL or PostgresSQL
and incorrectly created the timestamp columns as float we would
fail to correct them to double because when we migrated to use
timestamps for the columns I missed that we needed to change the
columns and types for µs precision
2023-03-20 00:06:37 -04:00
J. Nick Koston e798c30b8b
Fix statistics schema auto repair when there is bad data ()
- If the user had previously duplicated data we could end up
  picking the next metadata_id and there could be stale rows
  in the database that have that metadata_id. This can only happen
  from bad manual migrations (which is what this is function
  is validating in the first place). To solve this we now insert
  data with a future date and look at the latest inserted row
  instead of the first.

Example
```
['stored_statistics',
  defaultdict(<class 'list'>,
              {'recorder.db_test_schema': [{'end': 948589200.0,
                                            'last_reset': None,
                                            'max': None,
                                            'mean': 2021.0,
                                            'min': None,
                                            'start': 948585600.0,
                                            'state': None,
                                            'sum': 394.5068},
                                          {'end': 1601946000.000001,
                                            'last_reset': 1601942400.000001,
                                            'max': 1.000000000000001,
                                            'mean': 1.000000000000001,
                                            'min': 1.000000000000001,
                                            'start': 1601942400.000001,
                                            'state': 1.000000000000001,
                                            'sum': 1.000000000000001}]})]
```
2023-03-20 00:06:23 -04:00
Allen Porter 9721ba59b6
Rewrite the calendar trigger to fix potential bugs ()
Update the calander event trigger logic to have more exhaustive coverage. The
trigger will now use a timespan to create an explicit window for considering
upcoming events. The start/end of the time span is now more explicit, rather
than getting it from the alarm time.

The trigger is now broken into composable pieces:
- A timespan object for more explicitly managing the time window
- A function to get events during a time span
- A function to process upcoming events and determine the trigger times

The existing listener is now just responsible for scheduling alarms and glue.

This fixes bug with DST handling where the conversion back and forth between
UTC and timezone ends up dropping events during the jump forward. In practice,
an event was returned from the scanning, but it was never fired by the trigger
because (1) it was filtered out of the interval and (2) the event list was
previously cleared every iteration so it would get dropped.

Future improvements can bake more invariant checking into this structure.
2023-03-19 23:42:12 -04:00
Jan Bouwhuis 2039955ef7
Fix imap_email_content unknown status and replaying stale states () 2023-03-19 17:35:45 -10:00
starkillerOG 939fce4607
Shield Reolink webhook callback from cancelation ()
* shield Reolink webhook callback from cancelation

* Update homeassistant/components/reolink/host.py

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

* fix styling

* fix black

* Revert to using asyncio.shield

---------

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2023-03-19 23:35:16 -04:00
J. Nick Koston c94b054d75
Retain history when renaming an entity_id ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-03-19 17:33:21 -10:00
J. Nick Koston affb48d271
Avoid joining states_meta for statistics queries () 2023-03-19 16:44:35 -10:00
J. Nick Koston bf63e6cbd4
Set unique on StatesMeta and EventTypes database tables ()
Set unique on StatesMeta and EventTypes

These should have been marked unique originally to prevent
collision bugs from going unnoticed. These have not been
to beta yet so this is not a breaking change
2023-03-19 22:30:01 -04:00
J. Nick Koston 817ba97227
Remove unneeded lambda_stmt in place add in statistics ()
We can generate this entire query in a single lambda_stmt
so there is no need to add two which increases the size
of the cache key
2023-03-19 22:05:39 -04:00
J. Nick Koston f27d73fc34
Remove legacy event lookups from logbook ()
Events recorded with Home Assistant 2022.5.x or older will no
longer display context information in the logbook
2023-03-19 22:05:07 -04:00
J. Nick Koston aebe4c66a6
Fix cpu thrashing during purge after all legacy events were removed ()
* Fix cpu thrashing during purge after all legacy events were removed

We now remove the the index of of event ids on the states table when its
all NULLs to save space. The purge path needs to avoid checking for legacy
rows to purge if the index has been removed since it will result in a full
table scan each purge cycle that will always find no legacy rows to purge

* one more place

* drop the key constraint as well

* fixes

* more sqlite
2023-03-19 22:04:24 -04:00
J. Nick Koston 7f3e4cb3af
Guard against selecting all invalid entity_ids in history ()
If all the entity_ids that were provided do not exist we would
end up passing an empty list of ids to the SQL query which
would do an unbounded select
2023-03-19 22:03:12 -04:00
J. Nick Koston 5ffb233004
Avoid database executor job to fetch statistic metadata on cache hit ()
* Avoid database executor job to fetch statistic metadata on cache hit

Since we will almost always have a cache hit fetching
statistic meta data we can avoid an executor job

* Avoid database executor job to fetch statistic metadata on cache hit

Since we will almost always have a cache hit fetching
statistic meta data we can avoid an executor job

* Avoid database executor job to fetch statistic metadata on cache hit

Since we will almost always have a cache hit fetching
statistic meta data we can avoid an executor job

* remove exception catch since the threading.excepthook will actually catch this in production

* fix a few missed ones

* threadsafe

* Update homeassistant/components/recorder/table_managers/statistics_meta.py

* coverage and optimistic caching
2023-03-19 22:01:16 -04:00
Jesse Moody d7de23fa65
Adjust eventloop -> event loop spelling ()
eventloop -> event loop spelling
2023-03-19 21:53:21 +01:00
Matthias Alphart 557b9c7d51
Add KNX interface device with diagnostic entities () 2023-03-19 02:13:52 -11:00
Oliver 0441a64c69
Update media state via telnet in `denonavr` integration () 2023-03-19 00:47:01 -10:00
J. Nick Koston 87264d219a
Fix ssl context being recreated frequently in httpx ()
* Fix ssl context being created every time in httpx

* its expensive, only do it once
2023-03-19 05:13:48 -04:00
J. Nick Koston 300f7b4f77
Remove async_block_till_done in freebox ()
async_block_till_done() is not meant to be called in integrations
2023-03-19 07:59:05 +01:00
Jan Bouwhuis e937693d97
Fix blocking MQTT entry unload ()
* Remove unneeded async_block_till_done

* use await asyncio.sleep(0) instead
2023-03-18 14:57:40 -10:00
Vincent Knoop Pathuis 6ad9f420ab
Add Landis+Gyr poll on restart () 2023-03-18 08:50:50 -11:00
Franck Nijhof d106cb48d2
Add state attribute translations for light ()
* Add state attribute translations for light

* Process review comments
2023-03-17 20:35:25 -04:00
Franck Nijhof cd3819abec
Add state attribute translations for Sensor () 2023-03-17 20:32:52 -04:00
J. Nick Koston 30e7ab247d
Small cleanups to writing entity state ()
* Small cleanups to writing entity state

* reduce one prop access

* small cleanups

* small cleanups

* name conflict
2023-03-17 20:32:24 -04:00
Franck Nijhof 8ecd73cac7
Add state attribute translations for Weather () 2023-03-17 20:29:48 -04:00
Franck Nijhof 1f4164def8
Add state (attribute) translations for Text () 2023-03-17 20:29:12 -04:00
J. Nick Koston e87359761b
Fix some I/O in the event loop during backup () 2023-03-17 20:28:29 -04:00
J. Nick Koston b1f64de6ce
Remove the old ix_states_event_id index if its no longer being used ()
* Remove the old ix_states_event_id index if its no longer being used

* cover it

* fixes

* fixup

* Update homeassistant/components/recorder/tasks.py
2023-03-17 20:27:33 -04:00
J. Nick Koston 138bbd9c28
Use json_loads_object util in backup ()
* Use json_loads_object util in backup

* adjust test
2023-03-17 20:25:29 -04:00
Franck Nijhof dbebf8c783
Add state attribute translations for media players ()
* Add state attribute translations for media players

* Process review comments

* Process review comments

* Fix and extend

* Add yes/no as generic state
2023-03-17 20:24:33 -04:00
Jan Bouwhuis 5f22796b38
Refactor imap coordinator ()
* Warn if the previous push wait task it taking longer than the update interval

* refactor

* Call _async_fetch_number_of_messages first

* Add cleanup in case fetching fails

* mypy

* Set sensor to unknown if an error occured.

* Handling invalid auth an reraise when needed

* Handle invalid folder as setup error

* Close IMAP stream before logout at cleanup

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2023-03-17 22:45:15 +01:00
epenet 469dbec089
Add type hints to plex data ()
* Add type hints to plex data

* Rename method
2023-03-17 22:14:24 +01:00
J. Nick Koston 377dff5ee4
Ensure all recorder session executes use retries or the execute helper () 2023-03-17 10:45:58 -10:00
Kevin Worrel b403a96ea0
Bump screenlogicpy to v0.8.2 () 2023-03-17 10:10:37 -10:00
Franck Nijhof 95515fbe78
Improve/extend state translations for Alarm Control Panel () 2023-03-17 14:25:20 -04:00
Franck Nijhof e402e733a0
Add translations for Image processing () 2023-03-17 13:52:59 -04:00
Franck Nijhof db5a7b0e5e
Add translations for Geolocation () 2023-03-17 13:52:34 -04:00
Franck Nijhof 5657fcd1e8
Add state attribute translations for Number () 2023-03-17 13:52:19 -04:00
Franck Nijhof b1a3bfb298
Drop flake8 in favor of Ruff () 2023-03-17 13:30:06 +01:00
Martin Hjelmare f4de050904
Bump hass-nabucasa to 0.61.1 () 2023-03-17 13:27:05 +01:00
lunmay cdb01146da
Fix misstype translation reference keynames () 2023-03-17 12:05:29 +01:00
Malte Franken ed0a059053
Refactor entity manager code in geo_json_events integration ()
* moved entity manager

* fix circular reference

* simplify new entity signal
2023-03-17 11:59:29 +01:00
J. Nick Koston aa72b48725
Mark recorder system_health session read_only () 2023-03-17 10:22:21 +01:00
J. Nick Koston dbb2706c76
Reduce number of tasks created by compiling missing statistics () 2023-03-16 21:07:14 -10:00
J. Nick Koston d671d7fc1f
Add native_step to baf () 2023-03-16 19:13:42 -10:00
Jean-François Roy 5a6234d60e
Bump aiobafi6 to 0.8.0 () 2023-03-16 19:13:23 -10:00
J. Nick Koston f6f3565796
Reduce latency to find stats metadata () 2023-03-16 19:00:02 -10:00
Allen Porter 04a99fdbfc
Add local calendar diagnostics platform ()
* Add local calendar diagnostics platform

* Use redaction from ical

* Update diagnostics for new ical version

* Apply suggestions from code review

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Use snapshot tests for local calendar diagnostics

* Setup diagnostics directly in tests rather than via dependencies

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-03-16 23:05:01 -04:00
Erik Montnemery ae127e7687
Change light white service call attribute to accept True () 2023-03-16 23:02:56 -04:00
Franck Nijhof a153720599
Add state attribute translations for automations () 2023-03-16 23:02:11 -04:00
Franck Nijhof a2b6ef3d7b
Add state attribute translations for fans () 2023-03-16 23:01:47 -04:00
Franck Nijhof f8da3ee50e
Add state attribute translations for locks () 2023-03-16 23:00:45 -04:00
J. Nick Koston 350e967a89
Bump aioharmony to 0.2.10 ()
fixes 
2023-03-16 22:44:49 -04:00
Michael Hansen e16f17f5a8
Voice assistant integration with pipelines ()
* Initial commit

* Add websocket test tool

* Small tweak

* Tiny cleanup

* Make pipeline work with frontend branch

* Add some more info to start event

* Fixes

* First voice assistant tests

* Remove run_task

* Clean up for PR

* Add config_flow.py

* Remove CLI tool

* Simplify by removing stt/tts for now

* Clean up and fix tests

* More clean up and API changes

* Add quality_scale

* Remove data from run-finish

* Use StrEnum backport

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-03-16 20:42:26 -04:00
epenet 81c0382e4b
Fix lingering timer in bootstrap tests ()
* Fix lingering timer in bootstrap test

* Adjust comment

* Use a constant
2023-03-16 17:20:27 -04:00
Franck Nijhof f9919bb7cf
Add pre-defined entity name translations () 2023-03-16 21:10:20 +01:00
Franck Nijhof e6f280cf7a
Add state attribute translations for device trackers () 2023-03-16 19:58:52 +01:00
Franck Nijhof 298dae55fa
Add missing state translations for Lock entities () 2023-03-16 19:06:35 +01:00
Franck Nijhof d99c02b46f
Add state attribute translations for covers () 2023-03-16 19:04:25 +01:00
Franck Nijhof cb8ed4a1cc
Add state attribute translations for alarm control panel () 2023-03-16 19:04:11 +01:00
Franck Nijhof 3e89b81e1d
Add state attribute translations for calendars () 2023-03-16 19:03:23 +01:00
Bram Kragten ba4a638b39
Update frontend to 20230309.1 () 2023-03-16 18:32:07 +01:00