Commit graph

12704 commits

Author SHA1 Message Date
Allen Porter
e74c711ef3
Add application credentials description strings () 2022-06-08 07:09:32 -07:00
Erik Montnemery
5987266e56
Refactor template entity to allow reuse ()
* Refactor template entity to allow reuse

* Fix schema and default name

* Add tests

* Update requirements

* Improve test

* Tweak TemplateSensor initializer

* Drop attributes and availability from TemplateEntity

* Use rest sensor for proof of concept

* Revert changes in SNMP sensor

* Don't set _attr_should_poll in mixin class

* Update requirements
2022-06-08 15:55:49 +02:00
J. Nick Koston
329595bf73
Make radiotherm hold mode a switch () 2022-06-07 14:26:06 -10:00
J. Nick Koston
7ae8bd5137
Remove sqlalchemy lambda_stmt usage from history, logbook, and statistics () 2022-06-07 16:15:50 -07:00
Michael
8c34067f17
Fix creating unique IDs for WiFi switches in Fritz!Tools () 2022-06-07 16:11:38 -07:00
Christopher Bailey
1bc9867940
Bump version of pyunifiprotect to 3.9.0 ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-06-07 08:19:39 -10:00
Maciej Bieniek
0b5c0f8249
Bump nam backend library ()
* Update config flow

* Fix discovery with auth

* Call check_credentials() on init

* Update tests

* Bump library version

* Cleaning

* Return dataclass instead of tuple

* Fix pylint error
2022-06-07 06:56:11 -10:00
David F. Mulcahey
a5dc7c5f28
Add logbook describe event support to ZHA () 2022-06-07 06:49:40 -10:00
uvjustin
73f2bca377
Make Stream.stop() async ()
* Make Stream.start() async
* Stop streams concurrently on shutdown
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-06-08 00:10:53 +08:00
Maciej Bieniek
c6b835dd91
Add missing state_class to min_max sensors ()
Add missing state_class
2022-06-07 17:02:12 +02:00
Erik Montnemery
5f2b4001f3
Separate recorder database schema from other classes ()
* Separate recorder database schema from other classes

* fix logbook imports

* migrate new tests

* few more

* last one

* fix merge

Co-authored-by: J. Nick Koston <nick@koston.org>
2022-06-07 14:41:43 +02:00
J. Nick Koston
2e47cee72a
Fix setup race when config entry is in a setup retry state () 2022-06-06 22:48:49 -07:00
BigMoby
0c21bf7c25
Remove iAlarm XR integration ()
* fixing after MartinHjelmare review

* fixing after MartinHjelmare review conversion alarm state to hass state

* fixing after MartinHjelmare review conversion alarm state to hass state

* manage the status in the alarm control

* simplyfing return function

* Removing iAlarm XR integration because of Antifurto365 explicit request to remove after some issues in their cloud service
2022-06-06 22:23:10 -07:00
J. Nick Koston
de2e9b6d77
Fix state_changes_during_period history query when no entities are passed () 2022-06-06 12:50:52 -07:00
J. Nick Koston
0b62944148
Mark counter domain as continuous to exclude it from logbook () 2022-06-05 21:25:26 -10:00
J. Nick Koston
457c7a4ddc
Fix incompatiblity with live logbook and google_assistant () 2022-06-05 19:06:49 -10:00
G Johansson
7536586bed
Add binary sensors for Pure devices Boost Config () 2022-06-05 18:58:48 -10:00
J. Nick Koston
6b2e5858b3
Send an empty logbook response when all requested entity_ids are filtered away () 2022-06-05 21:14:47 -07:00
J. Nick Koston
c66b000d34
Reduce branching in generated lambda_stmts () 2022-06-05 21:13:31 -07:00
hesselonline
9ea504dd7b
Bump wallbox to 0.4.9 () 2022-06-05 15:31:09 -10:00
J. Nick Koston
cac84e4160
Add config flow to radiotherm () 2022-06-05 13:59:52 -10:00
Robert Hillis
a502a8798f
Add config flow to skybell () 2022-06-04 16:37:08 -10:00
J. Nick Koston
bc22e79c7b
Add a test for a complex entity filter () 2022-06-04 18:43:23 -07:00
G Johansson
a1b372e4ca
Minor fixes Trafikverket Train ()
* Minor fixes Trafikverket Train

* Remove ConfigEntryAuthFailed
2022-06-04 12:37:39 +02:00
Allen Porter
9d933e732b
Remove google scan_for_calendars service and simplify platform setup ()
* Remove google scan_for_calendars service and simplify platform setup

* Update invalid calendar yaml test
2022-06-03 21:56:53 -07:00
Allen Porter
bdc41bf22a
Fix google calendar bug where expired tokens are not refreshed () 2022-06-03 16:33:12 -07:00
J. Nick Koston
8e8fa0399e
Fix statistics_during_period being incorrectly cached () 2022-06-03 13:04:46 -07:00
G Johansson
8d0dd1fe8c
Config flow for scrape integration () 2022-06-03 09:24:04 -10:00
G Johansson
5ee2f4f438
Sensibo Set temperature improvement () 2022-06-03 09:11:57 -10:00
starkillerOG
6cadd4f665
MotionBlinds use device_name helper ()
* use device_name helper

* fix typo

* fix import

* fix isort

* add gateway_test

* implement gateway test

* correct test blind mac
2022-06-03 15:33:43 +02:00
w35l3y
beab6e2e5f
Fix ended session when there isn't any response from the user ()
* Fix end session when there isn't any response

This PR fixes 

* Added test case as requested

https://github.com/home-assistant/core/pull/72218#discussion_r881584812
2022-06-03 15:32:22 +02:00
Raphaël Beamonte
88129dbe91
Allow log template function to return specified default on math domain error ()
Fix regression for logarithm template
2022-06-03 15:27:10 +02:00
Joakim Plate
8910d265d6
Keep track of a context for each listener ()
* Remove async_remove_listener

This avoids the ambuigity as to what happens if same callback is added multiple times.

* Keep track of a context for each listener

This allow a update coordinator to adapt what data to request on update from the backing service based on which entities are enabled.

* Clone list before calling callbacks

The callbacks can end up unregistering and modifying the dict while iterating.

* Only yield actual values

* Add a test for update context

* Factor out iteration of _listeners to helper

* Verify context is passed to coordinator

* Switch to Any as type instead of object

* Remove function which use was dropped earliers

The use was removed in 8bee25c938
2022-06-03 13:55:57 +02:00
Allen Porter
3a8a816584
Cleanup nest config flow tests to use common setup fixtures ()
* Cleanup nest config flow tests to use common setup

* Remove some conditionals in test setup
2022-06-02 21:42:52 -07:00
J. Nick Koston
5b31414225
Fix misalignments between sql based filtering with the entityfilter based filtering () 2022-06-02 20:52:53 -07:00
Khole
a4c3585448
Fix Hive authentication () 2022-06-02 14:54:26 -07:00
Erik Montnemery
b97d346df7
Fix reload of MQTT yaml config () 2022-06-02 11:32:31 -07:00
J. Nick Koston
d3b1896a06
Only present history_stats state as unknown if the time is in the future () 2022-06-02 08:39:53 -07:00
J. Nick Koston
f1a31d8d33
Add support for async_remove_config_entry_device to unifiprotect ()
* Add support for async_remove_config_entry_device to unifiprotect

* tweaks

* tweaks

* more cleanups

* more cleanups

* fix unhelpful auto import

* add coverage

* fix mac formatting

* collapse logic
2022-06-02 08:26:08 -07:00
Matrix
9192d0e972
Bump yolink-api to 0.0.6 ()
* Bump yolink-api to 0.0.6

* update testcase
2022-06-02 17:21:22 +02:00
Jan Bouwhuis
52561ce076
Update MQTT tests to use the config entry setup ()
* New testframework and tests for fan platform

* Merge test_common_new to test_common

* Add alarm_control_panel

* Add binary_sensor

* Add button

* Add camera

* Add climate

* Add config_flow

* Add cover

* Add device_tracker_disovery

* Add device_trigger

* Add diagnostics

* Add discovery

* Add humidifier

* Add init

* Add lecacy_vacuum

* Add light_json

* Add light_template

* Add light

* Add lock

* Add number

* Add scene

* Add select

* Add sensor

* Add siren

* Add state_vacuum

* Add subscription

* Add switch

* Add tag

* Add trigger

* Add missed tests

* Add another missed test

* Add device_tracker

* Remove commented out code

* Correct tests according comments

* Improve mqtt_mock_entry and recover tests

* Split fixtures with and without yaml setup

* Update fixtures manual_mqtt

* Update fixtures mqtt_json

* Fix test tasmota

* Update fixture mqtt_room

* Revert fixture changes, improve test

* re-add test
2022-06-02 14:24:46 +02:00
Guido Schmitz
219200b340
Fix test_hass_stop in devolo Home Network ()
Fix test_hass_stop
2022-06-02 13:59:29 +02:00
Marc Mueller
62a5854e40
Fix bare except () 2022-06-02 13:58:04 +02:00
Raman Gupta
6ccaf33bdf
Attempt to fix flaky tomorrowio test ()
* Fix flaky tomorrowio test

* reset mock outside context manager

* add to hass outside of context manager
2022-06-02 03:16:00 -04:00
J. Nick Koston
f79e5e002b
Ensure recorder shuts down when its startup future is canceled out from under it () 2022-06-01 22:13:09 -07:00
J. Nick Koston
c6e56c26b3
Fix logbook not setting up with an recorder filter that has empty fields () 2022-06-01 22:12:00 -07:00
Aidan Timson
2ba45a9f99
System Bridge 3.x.x ()
* Change to new package and tcp

* Rework integration pt1

* Show by default

* Handle auth error

* Use const

* New version avaliable (to be replaced in future by update entity)

* Remove visible

* Version latest

* Filesystem space use

* Dev package

* Fix sensor

* Add services

* Update package

* Add temperature and voltage

* GPU

* Bump package version

* Update config flow

* Add displays

* Fix displays connected

* Round to whole number

* GPU fan speed in RPM

* Handle disconnections

* Update package

* Fix

* Update tests

* Handle more errors

* Check submodule and return missing uuid in test

* Handle auth error on config flow

* Fix test

* Bump package version

* Handle key errors

* Update package to release version

* Client session in config flow

* Log

* Increase timeout and use similar logic in config flow to init

* 30 secs

* Add test for timeout error

* Cleanup logs

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

* Update tests/components/system_bridge/test_config_flow.py

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

* uuid raise specific error

* Type

* Lambda to functions for complex logic

* Unknown error test

* Bump package to 3.0.5

* Bump package to 3.0.6

* Use typings from package and pydantic

* Use dict()

* Use data listener function and map to models

* Use passed module handler

* Use lists from models

* Update to 3.1.0

* Update coordinator to use passed module

* Improve coordinator

* Add debug

* Bump package and avaliable -> available

* Add version check

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-06-01 23:54:22 +02:00
Rami Mosleh
74e2d5c5c3
Remove deprecated YAML for transmission () 2022-06-01 17:25:49 +02:00
epenet
4c7837a576
Enforce type hints for config_flow ()
* Enforce type hints for config_flow

* Keep astroid migration for another PR

* Defer elif case

* Adjust tests

* Use ancestors

* Match on single base_class

* Invert for loops

* Review comments

* slots is new in 3.10
2022-06-01 13:09:53 +02:00
J. Nick Koston
5d2326386d
Fix logbook spinner never disappearing when all entities are filtered () 2022-06-01 12:33:46 +02:00