Stefan Agner
d7708d58ba
Introduce only_supervisor for @websocket_api.ws_require_user() ( #61298 )
2021-12-09 12:08:16 +01:00
Franck Nijhof
1ddb0d255a
Fix date/datetime support for templates ( #61088 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
2021-12-09 12:07:45 +01:00
Stefan Agner
89eed9c31e
Allow to lock SQLite database during backup ( #60874 )
...
* Allow to set CONF_DB_URL
This is useful for test which need a custom DB path.
* Introduce write_lock_db helper to lock SQLite database
* Introduce Websocket API which allows to lock database during backup
* Fix isort
* Avoid mutable default arguments
* Address pylint issues
* Avoid holding executor thread
* Set unlock event in case timeout occures
This makes sure the database is left unlocked even in case of a race
condition.
* Add more unit tests
* Address new pylint errors
* Lower timeout to speedup tests
* Introduce queue overflow test
* Unlock database if necessary
This makes sure that the test runs through in case locking actually
succeeds (and the test fails).
* Make DB_LOCK_TIMEOUT a global
There is no good reason for this to be an argument. The recorder needs
to pick a sensible value.
* Add Websocket Timeout test
* Test lock_database() return
* Update homeassistant/components/recorder/__init__.py
Co-authored-by: Erik Montnemery <erik@montnemery.com >
* Fix format
Co-authored-by: J. Nick Koston <nick@koston.org >
Co-authored-by: Erik Montnemery <erik@montnemery.com >
2021-12-09 12:07:41 +01:00
Paulus Schoutsen
700eaf8794
Fix islamic prayer times timestamp sensor ( #61207 )
2021-12-08 11:01:56 -08:00
J. Nick Koston
04a2e1fd7b
Fix uncaught exception in bond config flow ( #61184 )
2021-12-08 11:01:49 -08:00
Erik Montnemery
707e501511
Skip duplicated data when calculating fossil energy consumption ( #60599 )
2021-12-08 11:01:46 -08:00
einarhauks
fecfbba442
Display energy in wh instead of kWh ( #61169 )
2021-12-07 12:54:21 -08:00
Tobias Sauerwein
816b5af883
Fix Netatmo climate issue ( #61154 )
...
Signed-off-by: cgtobi <cgtobi@gmail.com >
2021-12-07 12:54:19 -08:00
Erik Montnemery
78ada630c0
Guard against missing states in Alexa state updates ( #61152 )
2021-12-07 12:54:18 -08:00
Marcel van der Veldt
4ad904f3b7
Change check for existence of options flow ( #61147 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
2021-12-07 12:54:16 -08:00
Erik Montnemery
8da3756602
Bump hatasmota to 0.3.1 ( #61120 )
2021-12-07 12:54:15 -08:00
Marcel van der Veldt
d1672a1e9a
Remove colon from default entity name in Hue integration ( #61118 )
2021-12-06 15:53:58 -08:00
Erik Montnemery
3ba07ce395
Fix CO2 calculation when data is missing ( #61106 )
2021-12-06 15:53:56 -08:00
Marcel van der Veldt
ef0f3f7ce9
Fix migration of entities of Hue integration ( #61095 )
...
* fix device name in log
* Fix Hue migration for all id versions
* fix tests
* typo
* change to bit more universal approach
* fix test again
* formatting
2021-12-06 15:53:54 -08:00
epenet
cb371ef27c
Prevent log flooding in frame helper ( #61085 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com >
2021-12-06 15:53:54 -08:00
J. Nick Koston
e09245eb14
Fix missing unique id in enphase_envoy ( #61083 )
2021-12-06 15:53:52 -08:00
Allen Porter
f4a38c0190
Coalesce nest media source preview clips by session and bump google-nest-sdm ( #61081 )
2021-12-06 15:53:50 -08:00
J. Nick Koston
ec88a42948
Abort flux_led discovery if another device gets the ip ( #61074 )
...
- If the dhcp reservation expired for the device that
was at the ip and a new flux_led device appears we
would discover it because the unique_id did not match
2021-12-06 15:51:59 -08:00
Allen Porter
0c87885f41
Fix regression in nest event media player with multiple devices ( #61064 )
2021-12-06 15:51:56 -08:00
schreyack
34f728e5d2
Fix previous setting briefly appearing on newer flux_led devices when turning on ( #60004 )
...
Co-authored-by: J. Nick Koston <nick@koston.org >
2021-12-06 15:51:54 -08:00
Allen Porter
377046bff5
Fetch media for events for rendering in the nest media player ( #61056 )
2021-12-05 09:52:28 -08:00
Marcel van der Veldt
dd95b9b1e4
Disable options flow for Hue V2 bridges ( #61045 )
2021-12-05 09:52:28 -08:00
Franck Nijhof
7a4f1c3147
Handle unknown/unavailable state for mobile_app ( #60974 )
2021-12-05 09:52:24 -08:00
J. Nick Koston
4e957b1dbe
Fix lutron caseta discovery with newer firmwares ( #61029 )
2021-12-05 09:43:51 -08:00
Allen Porter
c4fe3d05f2
Improve nest media source event timestamp display ( #61027 )
...
Drop subsecond text from the nest media source event timestamp display, using a common date/time
template string.
2021-12-05 09:43:51 -08:00
Marvin Wichmann
f81055dc09
Add missing local_ip to KNX config flow and options flow ( #61018 )
...
* Add missing local_ip to KNX config flow and options flow
* Update strings
2021-12-05 09:43:50 -08:00
Martin Hjelmare
18f36b9c0b
Revert metoffice weather daytime ( #60978 )
2021-12-05 09:43:45 -08:00
J. Nick Koston
11b343a513
Fix yeelight name changing to ip address if discovery fails ( #60967 )
2021-12-05 09:43:42 -08:00
Paulus Schoutsen
fe46b2664a
Handle invalid device registry entry type ( #60966 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev >
2021-12-05 09:43:41 -08:00
rikroe
f78e59842d
Fix BMW Connected Drive ( #60938 )
...
* Bump bimmer_connected to 0.8.5
* Always update HA states after service execution
* Fix BMW device tracker & vehicle_finder service
* Add charging_end_time sensor
* Fix pylint & pytest
* Remove unneeded DEFAULT_OPTION
* Revert adding charging_end_time & state_attributes
* Don't delete option data for CONF_USE_LOCATION
* Remove stale string
Co-authored-by: rikroe <rikroe@users.noreply.github.com >
2021-12-05 09:43:37 -08:00
Chen-IL
ac26c2378b
Add temperature sensors for Asuswrt ( #58303 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
2021-12-03 11:27:17 -08:00
Clifford Roche
d6c27809dc
Gree update device ips when changed ( #57876 )
2021-12-03 11:18:53 -08:00
Jan Bouwhuis
88b93546f3
Re-add-tests with new filters removed with #60854 ( #60895 )
2021-12-03 11:04:05 -08:00
Allen Porter
ba99dc3af9
Add Nest Battery Cam event clip support with a Nest MediaSource ( #60073 )
2021-12-03 10:53:05 -08:00
epenet
b65b25c1bb
Move MqttServiceInfo to init.py ( #60905 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com >
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
2021-12-03 19:34:48 +01:00
David F. Mulcahey
02b5449648
Add support for siren entities in ZHA ( #60920 )
2021-12-03 19:23:57 +01:00
jjlawren
cbf2bf2e1f
Add audio input format sensor to Sonos HT devices ( #60884 )
2021-12-03 10:06:56 -08:00
Marius
b61dede826
Add command_line icon_template ( #58877 )
...
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com >
2021-12-03 10:06:32 -08:00
Tobias Sauerwein
cf7a614309
Add battery sensor for Netatmo climate devices ( #60911 )
2021-12-03 09:33:24 -08:00
Marvin Wichmann
3baa7b679d
Use new Platform enum in KNX ( #60902 )
2021-12-03 09:29:38 -08:00
Matthias Alphart
77cd751543
DHCP discovery for Fronius integration ( #60806 )
...
Co-authored-by: J. Nick Koston <nick@koston.org >
2021-12-03 18:29:15 +01:00
epenet
75ec937359
Use new Platform enum in Renault ( #60903 )
...
* Use Platform enum in Renault
* Use Platform enum in Renault tests
Co-authored-by: epenet <epenet@users.noreply.github.com >
2021-12-03 09:28:04 -08:00
epenet
231d434b76
Use new Platform enum in Onewire ( #60904 )
...
* Use new Platform enum in Onewire
* Use Platform in tests
Co-authored-by: epenet <epenet@users.noreply.github.com >
2021-12-03 09:25:22 -08:00
epenet
adf2fa5664
Use EntityCategory enum in Onewire ( #60907 )
...
* Use EntityCategory enum in Onewire
* Add checks for the entity_category
* Fix typo
Co-authored-by: epenet <epenet@users.noreply.github.com >
2021-12-03 09:20:00 -08:00
Erik Montnemery
17dc609363
Correct validation of conditions in scripts and automations ( #60890 )
...
* Correct validation of conditions in scripts and automations
* Fix test
2021-12-03 09:08:28 -08:00
Marc Mueller
f57d42a9e8
Use platform enum (1) [A-D] ( #60908 )
...
* Use platform enum (1) [A-D]
* Fix imports
* Fix tests
* Use Platform even in tests
2021-12-03 08:51:30 -08:00
Bram Kragten
ef458b237c
Return if user is local only ( #60917 )
2021-12-03 16:34:26 +01:00
jjlawren
b883014ed4
Add Sonos subwoofer and surround on/off controls ( #60918 )
2021-12-03 16:05:40 +01:00
epenet
e64f901e92
Use dataclass properties in zwave_js ( #60913 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com >
2021-12-03 14:47:56 +01:00
epenet
358922db56
Use dataclass for HassioServiceInfo ( #60824 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com >
2021-12-03 14:05:56 +01:00