J. Nick Koston
b1f64de6ce
Remove the old ix_states_event_id index if its no longer being used ( #89901 )
...
* 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 ( #89895 )
...
* Use json_loads_object util in backup
* adjust test
2023-03-17 20:25:29 -04:00
epenet
ab4a726e6c
Add tmpdir to known fixtures in pylint ( #89844 )
2023-03-17 10:22:02 +01:00
J. Nick Koston
f6f3565796
Reduce latency to find stats metadata ( #89824 )
2023-03-16 19:00:02 -10:00
Allen Porter and epenet
04a99fdbfc
Add local calendar diagnostics platform ( #89776 )
...
* 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 ( #89803 )
2023-03-16 23:02:56 -04:00
epenet
ff8b91aeea
Add freezer to known test fixtures in pylint ( #89825 )
...
Add freezer to known fixtures in pylint
2023-03-16 22:39:41 -04:00
Michael Hansen and Paulus Schoutsen
e16f17f5a8
Voice assistant integration with pipelines ( #89822 )
...
* 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
Jan Bouwhuis
6e25abfdcc
Fix typo in docstr ( #89804 )
2023-03-16 16:54:26 +01:00
Jan Bouwhuis
c81a38effb
Mqtt prepare test base part1 ( #89796 )
...
* Refactor test_reloadable
* Refactor test_disabling_and_enabling_entry
* optimize test_unload_config_entry
* Cleanup help_test_unload_config_entry
* cleanup test_unload_entry
* Update test tls_version
* More tests to entry only
* Add validate and hassconfig patch
* Revert fixture changes patch_hass_config
* Follow up comments
2023-03-16 15:57:01 +01:00
Erik Montnemery
f55aaf7664
Drop unused Google entity settings from cloud ( #89786 )
2023-03-16 11:15:38 +01:00
Vincent Knoop Pathuis
273d794f7a
Add device class for Landis+Gyr GJ energy sensor ( #89522 )
2023-03-16 11:12:05 +01:00
epenet
69e85b3216
Fix SFR Box diagnostics ( #89783 )
2023-03-16 11:09:54 +01:00
epenet
913156b0e0
Avoid lingering timer on script shutdown ( #89753 )
2023-03-16 08:00:21 +01:00
J. Nick Koston
99d6b1fa57
Migrate States to use a table manager ( #89769 )
2023-03-15 16:19:43 -10:00
J. Nick Koston
4080d68489
Fix logbook tests failing because time was not url encoded correctly ( #89770 )
2023-03-15 15:29:41 -10:00
J. Nick Koston and Paulus Schoutsen
e379aa23bd
Migrate StateAttributes to use a table manager ( #89760 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
2023-03-15 15:26:29 -10:00
J. Nick Koston
aec2d63302
Add keep_days to recorder.purge_entities ( #89726 )
2023-03-15 11:13:47 -10:00
Michael
d4edec2863
Move calculation of current value into lib in Fritz!SmartHome ( #89150 )
2023-03-15 18:59:03 +01:00
fceb208381
Abort Hue config flow if bridge can not be reached ( #88893 )
...
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com >
Co-authored-by: Franck Nijhof <git@frenck.dev >
2023-03-15 18:55:34 +01:00
starkillerOG
4eee626770
Reolink check firmware ( #88903 )
2023-03-15 18:54:28 +01:00
epenet
c416d18506
Add WAN information to SFR Box ( #89678 )
2023-03-15 18:49:57 +01:00
Allen Porter
b588b8b215
Bump ical to 4.5.0 ( #89744 )
2023-03-15 18:06:46 +01:00
J. Nick Koston
a244749712
Make StatesMetaManager thread-safe when an entity_id is fully deleted from the database and than re-added ( #89732 )
...
* refactor to make StatesMetaManager threadsafe
* refactor to make StatesMetaManager threadsafe
* refactor to make StatesMetaManager threadsafe
* refactor to make StatesMetaManager threadsafe
* reduce
* comments
2023-03-15 08:54:02 -04:00
epenet and Martin Hjelmare
6270776fbb
Add turn_on trigger to Samsung TV ( #89018 )
...
* Add turn_on trigger to Samsung TV
* Add tests
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
* Remove assert
* Cleanup mock_send_magic_packet
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2023-03-15 12:43:53 +01:00
jan iversen
cd23caff58
Correct modbus serial method parameter ( #89738 )
2023-03-15 12:27:45 +01:00
epenet
9719f817c0
Bump ruff to 0.0.256 ( #89734 )
2023-03-15 10:07:12 +01:00
Allen Porter and epenet
a91055cc2a
Fix additional typing in local calendar tests ( #89704 )
...
* Fix additional typing in local calendar tests
* Update tests/components/local_calendar/test_calendar.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com >
---------
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com >
2023-03-14 19:33:46 -07:00
J. Nick Koston
b906d67c1e
Fix filtered purge not removing newer events ( #89721 )
2023-03-14 16:33:19 -10:00
Allen Porter
4ddcb14053
Add additional CalendarEvent validation ( #89533 )
...
Add additional event validation
2023-03-14 20:27:38 -04:00
Jack Boswell
c33ca4f664
Add diagnostics to Starlink ( #86328 )
2023-03-14 22:24:47 +01:00
Erik Montnemery
c2c809682a
Tweak OTBR tests ( #89694 )
2023-03-14 21:26:16 +01:00
Ernst Klamer
d1969fd0c2
Add water sensor to bthome ( #89595 )
...
* Add water sensor to bthome
* Use TOTAL state class for gas water and energy
2023-03-14 19:26:05 +01:00
epenet
71dc98a39c
Improve hass_ws_client type hint in tests ( #89703 )
2023-03-14 16:31:40 +01:00
Allen Porter and epenet
1bc4802c04
Move local calendar text fixtures to conftest.py ( #89674 )
...
* Move local calendar text fixtures to conftest.py
* Apply suggestions from code review
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com >
* Add imports for suggested typing fixes
* Apply suggestions from code review
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com >
---------
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com >
2023-03-14 08:12:44 -07:00
Erik Montnemery
85e0177195
Add WS command for connecting OTBR to a known Thread network ( #89692 )
...
* Add WS command for connecting OTBR to a known Thread network
* Add test
2023-03-14 15:28:06 +01:00
Bram Kragten
a213ef2475
Add websocket command to set preferred thread dataset ( #89700 )
2023-03-14 15:27:31 +01:00
ec1b8b616f
Debounce and group MQTT subscriptions ( #88862 )
...
* Debounce and group mqtt subscriptions
* Cleanup
* Do not cooldown on resubscribe
* Remove lock from task
Co-authored-by: Erik Montnemery <erik@montnemery.com >
* ruff
* Longer initial cool down. Manages unsubscribes
* Own lock for access to self._pending_subscriptions
* adjust
* Subscribe to highest QoS when sharing subscription
* do not block _pending_subscriptions_lock with io
* Test the highest qos is subscribed at
* Cleanup max qos
* Follow up comments part 1
* Make docstr more generic
* Make max qos update thread safe
* Add lock on clearing _max_qos when resubscribing
* Wait for linger task
* User copy
* Check for key before cleaning up
* Fix lingering task
* Do not use a lock
* do not await _async_queue_subscriptions
* Replace copy with assignment
* Update max qos before returning
* Do not iterate if max_qos == 0
* Do not ieterate subs if max qos == 0
* Set initial cooldown correctly
* Ensure discovery cooldown ends after subscribing
* plan last subscribe with debouncer timeout
* cooldown if self._pending_subscriptions is set
* Revert format changes
* Remove stale assingnment self._last_subscribe
* Remove not used property
* Also check while for pending subscriptions
* revert first added sleep()
* Optimize
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com >
Co-authored-by: J. Nick Koston <nick@koston.org >
2023-03-14 11:13:55 +01:00
J. Nick Koston
2cb673db04
Handle bytes data in sql sensors ( #89169 )
2023-03-13 18:07:05 -10:00
G Johansson and J. Nick Koston
afa58b80bd
Default to recorder db for SQL integration ( #85436 )
...
Co-authored-by: J. Nick Koston <nick@koston.org >
2023-03-13 17:41:32 -10:00
Erik Montnemery
2f4e9c8ef3
Use otbr domain as dataset source ( #89653 )
2023-03-13 20:56:09 -04:00
Erik Montnemery
d422b0dcc2
Make OTBR add newly created dataset to thread credential store ( #89645 )
2023-03-13 14:09:09 -04:00
G Johansson
02389960ce
Refactor Command line sensor to inherit TemplateSensor ( #81222 )
...
* Refactor sensor
* Remove not needed
* block until done
* reset test
* test sensor
* Add time
2023-03-13 17:23:25 +01:00
Erik Montnemery
8a0522ca2a
Include extended address in thread discovery data ( #89640 )
2023-03-13 15:59:22 +01:00
Joakim Sørensen and Franck Nijhof
11e21378b1
Add sensors for supervisor host ( #89461 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev >
2023-03-13 15:39:49 +01:00
epenet
07b25939a2
Use SnapshotAssertion in SFR button tests ( #89633 )
2023-03-13 15:23:00 +01:00
cdfb43d403
Address late review comments for frontier_silicon config flow ( #89507 )
...
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com >
Co-authored-by: wlcrs <wlcrs@users.noreply.github.com >
2023-03-13 15:06:45 +01:00
anotherthomas
179cc4d7f7
Improve warnings in mqtt light messages ( #89552 )
...
* improved warnings in mqtt light messages.
* fixed tests.
2023-03-13 14:46:16 +01:00
Erik Montnemery
a230732087
Correct naming of some otbr tests ( #89631 )
2023-03-13 13:56:08 +01:00
epenet
f3da95fb1f
Use SnapshotAssertion in SFR binary sensor tests ( #89624 )
2023-03-13 13:37:51 +01:00