Commit graph

46663 commits

Author SHA1 Message Date
Paulus Schoutsen
8018be28ee
TTS: allow resolving engine and test supported options ()
TTS: allow resolving engine
2023-03-31 13:34:42 -05:00
J. Nick Koston
44eaf70625
Make sonos activity check a background task ()
Ensures the task is canceled at shutdown if the device
is offline and the ping is still in progress
2023-03-31 14:33:44 -04:00
starkillerOG
09d54428c9
Bump reolink-aio to 0.5.9 () 2023-03-31 14:31:04 -04:00
Martin Hjelmare
8256d9b472
Remove xbox_live integration () 2023-03-31 14:30:04 -04:00
epenet
611d4135fd
Add ComponentProtocol to improve type checking () 2023-03-31 14:19:58 -04:00
Bram Kragten
03137feba5
Update frontend to 20230331.0 () 2023-03-31 14:15:49 -04:00
J. Nick Koston
c566303edb
Avoid writing state to all esphome entities at shutdown () 2023-03-31 18:23:05 +02:00
Erik Montnemery
149e610bca
Drop __eq__ dunder method from Entity () 2023-03-31 17:03:02 +02:00
Franck Nijhof
469321157d
Raise on invalid (dis)arm code in manual alarm () 2023-03-31 16:08:16 +02:00
Franck Nijhof
8e77d215e7
Raise on invalid (dis)arm code in manual mqtt alarm () 2023-03-31 16:08:02 +02:00
Erik Montnemery
9a17c437ad
Remove some dead code from google_assistant () 2023-03-31 15:59:48 +02:00
Erik Montnemery
3467f4674e
Remove unnecessary calls to async_update_entry from async_migrate_entry () 2023-03-31 15:53:35 +02:00
Erik Montnemery
1ca7f0dc6a
Tweak yalexs_ble translations () 2023-03-31 15:50:49 +02:00
Franck Nijhof
23372e8bc4
Add arming/disarming state to Verisure () 2023-03-31 14:55:48 +02:00
epenet
4f54e33f67
Allow removal of sensor settings in scrape ()
* Allow removal of sensor settings in scrape

* Adjust

* Adjust

* Add comment

* Simplify

* Simplify

* Adjust

* Don't allow empty string

* Only allow None

* Use default as None

* Use sentinel "none"

* Not needed

* Adjust unit of measurement

* Add translation keys for "none"

* Use translations

* Sort

* Add enum and timestamp

* Use translation references

* Remove default and set suggested_values

* Disallow enum device class

* Adjust tests

* Adjust _strip_sentinel
2023-03-31 14:34:20 +02:00
Rami Mosleh
8cbe394028
Use get_ha_sensor_data method to update glances sensors ()
* Use `get_ha_sensor_data` method to update sensor state

* update tests

* Use `get_ha_sensor_data` to validate connection

* Update test_sensor.py

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-03-31 14:27:37 +02:00
epenet
a616ac2b60
Move attribution constants to entity attributes ()
* Move attribution constants to entity attributes

* Adjust meteo france

* Adjust meteoclimatic

* Adjust nws
2023-03-31 14:25:49 +02:00
epenet
ab699d17a5
Ensure numeric sensors have a valid value ()
* Ensure numeric sensors have a valid value

* Flake8
2023-03-31 14:12:51 +02:00
Timm Schäuble
2e26b6e0cc
Add attachments to simplepush ()
* Add attachments

* Fix looking for attachment keywords in values

* Improve attachment input format

* Implement better approach to attachment parsing

* Make ruff happy

* Adjust attachment format and implementation according to comment from emontnemery
2023-03-31 14:10:12 +02:00
Franck Nijhof
28736e2ce4
Update orjson to 3.8.9 () 2023-03-31 13:59:49 +02:00
Franck Nijhof
6153f17155
Update sentry-sdk to 1.18.0 () 2023-03-31 13:58:53 +02:00
luar123
c7e8fc9f9d
Use more meaningful states for snapcast groups and clients ()
* Show muted snapcast groups as idle and use playing/idle state instead of on state for clients

* New module constant STREAM_STATUS

* Fix return type hint in snapcast

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-03-31 12:38:23 +02:00
Franck Nijhof
b9f0701336
Update ruff to v0.0.260 () 2023-03-31 11:43:28 +02:00
Hans Oischinger
b3887a633d
Bump PyVicare to 2.25.0 () 2023-03-31 09:44:30 +02:00
epenet
d0c38c1e12
Move icon constants to entity attributes ()
* Move icon constants to attribute

* Adjust test
2023-03-31 09:34:17 +02:00
J. Nick Koston
2e0ecf9bd9
Avoid more task creation in the discovery helper ()
* Avoid more task creation in the discovery helper

There is no longer a reason to awaiti the jobs being dispatched
since nothing was using the result and there is no risk of
job being garbage collected prematurely anymore since
the task revamp

* Update homeassistant/helpers/discovery.py
2023-03-31 09:10:55 +02:00
J. Nick Koston
ed673a1b35
Avoid creating a task on callback in owntracks when using mqtt ()
Nothing was being awaited in the callback. It did not
need to be a coro
2023-03-31 09:05:56 +02:00
puddly
3a3c738945
Bump ZHA dependencies ()
* Bump ZHA dependencies

* Ensure the network is formed on channel 15 when multi-PAN is in use
2023-03-30 20:55:01 -04:00
Franck Nijhof
47af325a88
Add entity name translations to LaMetric ()
* Add entity name translations to LaMetric

* Consistency
2023-03-30 20:54:31 -04:00
J. Nick Koston
a2efe2445a
Fix migration when encountering a NULL entity_id/event_type ()
* Fix migration when encountering a NULL entity_id/event_type

reported in #beta on discord

* simplify
2023-03-30 20:54:13 -04:00
J. Nick Koston
6b0c98045e
Handle garbage in the context_id column during migration ()
* Handle garbage in the context_id column during migration

* Update homeassistant/components/recorder/migration.py

* lint
2023-03-30 20:53:47 -04:00
Bram Kragten
6f89390251
Update frontend to 20230330.0 () 2023-03-30 13:48:21 -04:00
rikroe
565f311f5c
Add EV charging remote services for BMW/Mini ()
* Add select for EV charging to bmw_connected_drive

* Use snapshot for select tests, split select_option tests

* Apply suggestions from code review

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

* Further adjustments from code review

---------

Co-authored-by: rikroe <rikroe@users.noreply.github.com>
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-03-30 19:37:03 +02:00
TheJulianJES
fd55d0f2dd
Migrate old ZHA IasZone sensor state to zigpy cache ()
* Migrate old ZHA IasZone sensor state to zigpy cache

* Use correct type for ZoneStatus

* Test that migration happens

* Test that migration only happens once

* Fix parametrize
2023-03-30 11:15:12 -04:00
Franck Nijhof
cf628dbf23
Add a device to the sun () 2023-03-30 10:38:35 -04:00
Paulus Schoutsen
87c4659520
Unregister webhook when registering webhook with nuki fials () 2023-03-30 15:23:13 +02:00
Paulus Schoutsen
0b72cc9f5e
OpenAI to rely on built-in areas variable () 2023-03-30 15:21:45 +02:00
Erik Montnemery
976efb437b
Include channel in response to WS thread/list_datasets () 2023-03-30 09:16:27 -04:00
Petro31
642984a042
Fix for is_hidden_entity when using it in select, selectattr, reject, and rejectattr ()
fix
2023-03-30 09:14:58 -04:00
Maciej Bieniek
8d21e2b168
Use metric units internally in Accuweather integration ()
* Use metric units internally

* Remove unnecessary code

* Simplify sensor classes

* Remove AccuWeatherForecastSensor class

* Update wind speed value in test

* Return suggested_unit_of_measurement for wind entities

* Clean test

* Use _attr_suggested_unit_of_measurement

* Remove _get_suggested_unit()

* Remove unnecessarey code
2023-03-30 13:11:33 +02:00
Erik Montnemery
ead88cc3f8
Add preferred wind speed unit to unit systems ()
* Add preferred wind speed unit to unit systems

* Tweak

* Update tests
2023-03-30 12:54:12 +02:00
Nalin Mahajan
0e7d7f32c1
Add new control4 helper function ()
* Add new helper function to retrieve device variables and update light platform

* seperate try catch from helper function and fix typing

* Change helper function name

* Remove unnecessary forced type changes

* More type changes
2023-03-30 10:33:01 +02:00
epenet
3599515325
Add missing strings to sensor integration ()
* Add missing strings to sensor integration

* Enumeration

* Apply suggestion

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

---------

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-03-30 10:21:11 +02:00
Vincent Knoop Pathuis
a7040a0487
Add Landis+Gyr MWh-readings from ultraheat-api ()
* Use mwh values from ultraheat api when available

Remove manifest cleanup from PR

Remove added device class from this PR

Restore entity registry fixture

Replace filter by attr_entity_registry_enabled_default

* Catchup with  and 

* Add comment explaining disabling some entities

* Add parameterisation of test cases
2023-03-30 09:07:47 +02:00
jellenijhof12
ba32e28fc6
Add dimmable lights support to niko home control ()
* added support for dimmable lights and auto host discover

* split up merge request

* fixed feedback brightness support

* fixed feedback

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

* resolved feedback

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-03-30 08:59:29 +02:00
Thijs W
053ed3cfdc
Add reauth to frontier_silicon config flow ()
* Add reauth to frontier_silicon config flow

* Update patch target

* Apply suggestions from code review

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

* Add reauth_successful to strings.json

* Don't manually set "title_placeholders"

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

* 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-30 08:49:46 +02:00
Thijs W
40cb0eeb68
Add missing strings in frontier_silicon ()
Improve confirm message for ssdp flow
2023-03-30 08:05:24 +02:00
luar123
f0710bae06
Add config-flow to Snapcast ()
* initial stab at snapcast config flow

* fix linting errors

* Fix linter errors

* Add import flow, support unloading

* Add test for import flow

* Add dataclass and remove unique ID in config-flow

* remove translations

* Apply suggestions from code review

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

* Refactor config flow and terminate connection

* Rename test_config_flow.py

* Fix tests

* Minor fixes

* Make mock_create_server a fixture

* Combine tests

* Abort if entry already exists

* Apply suggestions from code review

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

* Move HomeAssistantSnapcast to own file. Clean-up last commit

* Split import flow from user flow. Fix tests.

* Use explicit asserts. Add default values to dataclass

* Change entry title to Snapcast

---------

Co-authored-by: Barrett Lowe <barrett.lowe@gmail.com>
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-03-30 07:42:09 +02:00
Raman Gupta
fc78290e2f
Remove callback decorators where unneeded ()
* Remove callback decorators where unneeded

* revert extra replace
2023-03-30 00:04:39 +02:00
RenierM26
93d1961aae
Use auth token in Ezviz ()
* Initial commit

* Revert "Initial commit"

This reverts commit 452027f1a3c1be186cedd4115cea6928917c9467.

* Change ezviz to token auth

* Bump API version.

* Add fix for token expired. Fix options update and unload.

* Fix tests (PLATFORM to PLATFORM_BY_TYPE)

* Uses and stores token only, added reauth step when token expires.

* Add tests MFA code exceptions.

* Fix tests.

* Remove redundant try/except blocks.

* Rebase fixes.

* Fix errors in reauth config flow

* Implement recommendations

* Fix typing error in config_flow

* Fix tests after rebase, readd camera check on init

* Change to platform setup

* Cleanup init.

* Test for MFA required under user form

* Remove useless if block.

* Fix formating after rebase

* Fix formating.

* No longer stored in the repository

---------

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2023-03-29 17:43:54 -04:00