Commit Graph

8392 Commits

Author SHA1 Message Date
Ron Klinkien
a08fffea17 Fix Garmin Connect integration with python-garminconnect-aio (#50865) 2021-05-31 16:43:01 -07:00
Erik Montnemery
8fd3761893 Fix flaky statistics tests (#51242) 2021-05-30 21:13:33 -07:00
jjlawren
d236e07046 Skip processed Sonos alarm updates (#51217)
* Skip processed Sonos alarm updates

* Fix bad conflict merge
2021-05-30 21:13:31 -07:00
Erik Montnemery
b75f4b1f4d Fix flaky statistics tests (#51214)
* Fix flaky statistics tests

* Tweak
2021-05-30 21:11:57 -07:00
J. Nick Koston
b37932e163 Fix samsungtv yaml import without configured name (#51204) 2021-05-30 21:09:05 -07:00
jjlawren
a0696fe923 Centralize Sonos subscription logic (#51172)
* Centralize Sonos subscription logic

* Clean up mocked Sonos Service instances, use subscription callback

* Use existing mocked attributes

* Use event dispatcher dict, move methods together, make update_alarms sync

* Create dispatcher dict once
2021-05-30 21:09:04 -07:00
Aaron David Schneider
e980365a9c Add tests for sonos switch platform (#51142)
* add tests

* refactor async_added_to_hass

* fix tests and race condition

* use async_get

* typo
2021-05-30 21:09:03 -07:00
Erik Montnemery
27e32bbb19 Weight sensor average statistics by state durations (#51150)
* Weight sensor average statistics by state durations

* Fix test
2021-05-28 14:50:32 +02:00
Joakim Sørensen
4ebc0d97bc Handle blank string in location name for mobile app (#51130) 2021-05-28 14:50:20 +02:00
Raman Gupta
c2c760eb8b Fix zwave_js.set_value schema (#51114)
* fix zwave_js.set_value schema

* wrap all schemas in vol.Schema

* readd removed assertions
2021-05-28 14:50:17 +02:00
Austin Mroczek
22dd7df66c Improve totalconnect config flow user experience (#47926) 2021-05-26 09:48:44 -07:00
ollo69
daff62f42d Add AsusWRT model and firmware information for device (#51102) 2021-05-26 09:46:06 -07:00
Matt Zimmerman
ffb9ab21c1 Add binary sensor for smarttub errors (#49364) 2021-05-26 09:25:47 -07:00
J. Nick Koston
64661ee2b7 Add network configuration integration (#50874)
Co-authored-by: Ruslan Sayfutdinov <ruslan@sayfutdinov.com>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-05-26 09:06:30 -07:00
Erik Montnemery
16e90f12ca Add last_reset property to Tasmota energy sensors (#51107)
* Add last_reset property to Tasmota energy sensors

* Correct device class for energy sensors
2021-05-26 17:58:06 +02:00
Franck Nijhof
19c505c0f0 Add Supervisor discovery to motionEye (#50901)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-05-26 17:40:07 +02:00
Raman Gupta
18e6ae8750 Add WS API commands to check for and install zwave_js config updates (#51106) 2021-05-26 08:39:08 -07:00
Raman Gupta
6d9b67ddb2 Add zwave_js heal node and network WS API commands (#51047)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-05-26 08:38:02 -07:00
Raman Gupta
8edf7f0407 Don't enforce uniqueness requirements for Waze and Google Travel Time (#50254)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-05-26 08:32:26 -07:00
Brandon Rothweiler
a36935dcee Add services for Mazda integration (#51016) 2021-05-26 16:36:36 +02:00
Franck Nijhof
a8a13da793 Fix discovery without uid aborts on completing user flow (#51105)
* Fix discovery without uid aborts on completing user flow

* Fix comment
2021-05-26 16:29:52 +02:00
Franck Nijhof
bf13af34b4 Use entity class vars in WLED (#50975) 2021-05-26 14:08:09 +02:00
Massimiliano Cannarozzo
5a5a145778 Make all MQTT cover payloads optional (#50579)
* Remove unused constant

* Make payload_close optional

* Make payload_open optional

* Compute supported features based on config
2021-05-26 13:50:44 +03:00
Raman Gupta
1de0d20a76 Bump zwave-js-server-python to 0.25.1 (#51097)
* Bump zwave-js-server-python to 0.25.1

* update fixtures
2021-05-26 12:37:24 +02:00
Erik Montnemery
789a14fc44 Add support for last_reset to MQTT sensor (#51036)
* Add support for last_reset to MQTT sensor

* Update abbreviations

* Improve test coverage
2021-05-26 11:50:29 +02:00
Raj Laud
b3607343fc Fix error in Squeezebox DHCP discovery flow (#50771)
* Map data from dhcp to squeezebox discovery flow

* Add tests for squeezebox dhcp discovery
2021-05-26 10:30:15 +02:00
uvjustin
c6f108f7c3 Refactor stream to use bytes (#51066)
* Refactor stream to use bytes
2021-05-26 16:19:09 +08:00
Maciej Bieniek
41a940f644 Add state class to Nettigo Air Monitor sensors (#50959) 2021-05-26 09:36:37 +02:00
ollo69
d5a9419fb7 Fix AsusWRT sensor test (#50956)
* Fix AsusWRT sensor test

* Revert use of utcnow

* Add MockDevice class

* Proper initialize static member

* Added mock_device fixture
2021-05-26 09:19:30 +02:00
Raman Gupta
5f7964b54b Add firmware updates support for zwave_js (#50390)
* Add WS API support for zwave_js firmware updates

* move file to fixture

* review comments

* fix logic and test based on upstream changes

* handle failure scenario

* handle failure scenario

* fix tests and adjust message

* Update homeassistant/components/zwave_js/api.py

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

* remove return from firmware upload view because client will raise an exception if not successful

* raise if user is not an admin

* raise bad request exception if firmware command fails

* incorporate #50923

* Add test for failed command

* add event name to messages

* change error to not found

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-05-26 02:57:00 -04:00
Erik Montnemery
154c849eac Filter unsupported parameters from light service calls (#51084)
* Filter unsupported parameters from light service calls

* Silence pylint

* Fix deconz tests

* Fix mqtt tests

* Fix scene tests

* Fix trådfri emulated CT

* Fix mqtt tests
2021-05-26 08:02:59 +02:00
J. Nick Koston
deb9135707 Handle clamped fan maxValue in homekit_controller (#51088) 2021-05-25 16:06:17 -05:00
Nathan Spencer
9ec0b0a8da Fix for invalid value error when using UI editor for Litter-Robot's set_wait_time service (#50269) 2021-05-25 20:15:37 +02:00
Raman Gupta
58e37435b3 Make more max lengths constants and add additional MaxLengthExceeded checks (#50337)
* Add more MaxLengthExceeded checks

* remove some validations to reduce performance impact

* check length of generated entity ID

* dont check entity ID twice and use single context id length constant

* fix test

* add missing test
2021-05-25 19:58:01 +02:00
jjlawren
fe75a1bb9d Set Fahrenheit reporting precision to tenths for Homekit Controller climate entities (#50415) 2021-05-25 19:32:59 +02:00
jjlawren
1e86818f85 Add battery support for Sonos S1 speakers (#50864) 2021-05-25 18:39:31 +02:00
Matt Zimmerman
aa18ad2abf Add service to snooze SmartTub reminders (#51012)
* Add service to snooze SmartTub reminders

* minimum is 10 days

* 0->10 in services.yaml as well

* Update homeassistant/components/smarttub/services.yaml

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

* Update homeassistant/components/smarttub/services.yaml

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

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-05-25 18:37:00 +02:00
Aaron David Schneider
9bf6ea60db Add Sonos alarm to sonos component (#50719)
* add sonos_alarm

* bug fix for _update_device

* fix pylint and black and co

* small bug fix in speaker.available_alarms

* cleanup and add _LOGGER.debug statements, fix pylint

* fix pylint

* _alarm_id to alarm_id

* fixed rare bug due to raceconditions

* Part 2 of raceconditionfix

* address review suggestions

* readd check for not yet subscribed

* - platforms_ready fix
- add alarmClock to pytest mock

* fixture for ListAlarms

* cleanup mock and match UUID for test

* add simple tests for sonos_alarm

* extend test for attributes

* typhint fix

* typo

* use get_alarms() directly

* refactor available_alarms

* fix attributes

* some cleanup

* change logic of fetch_alarms_for_speaker and rename to update_alarms_for_speaker

* update_alarms_for_speaker is now a method

* Update homeassistant/components/sonos/switch.py

Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>

* Update homeassistant/components/sonos/speaker.py

Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>

Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
2021-05-25 11:32:25 -05:00
Paul Bottein
fb61ef500c Add TV channel trait to google assistant (#49676) 2021-05-25 09:12:42 -07:00
Erik Montnemery
d2804433d3 Select onoff and brightness color modes last for light groups (#51054) 2021-05-25 08:49:24 -07:00
Raman Gupta
c0234df136 Remove device_registry fixture from zwave_js tests (#51072) 2021-05-25 08:48:21 -07:00
Raman Gupta
4875035ff8 Add zwave_js WS API commands for node ping and metadata (#51049) 2021-05-25 17:37:12 +02:00
Bram Kragten
26563e3ea4 Add statistics websocket endpoint (#51044)
Co-authored-by: Erik <erik@montnemery.com>
2021-05-25 08:03:37 -07:00
Andrey Kupreychik
cbe4df1893 SSDP Discovery for NDMS2 routers (#47312)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-05-25 15:36:03 +02:00
Martin Hjelmare
9319fc6263 Update zwave_js stored add-on options (#51063)
* Update zwave_js entry data if add-on data changed

* Fix tests

* Add test
2021-05-25 08:37:34 -04:00
Martin Hjelmare
bdb8cdf717 Fix zwave_js None color value (#50926) 2021-05-25 13:40:22 +02:00
Philip Allgaier
d8ff52e55b Add support for custom themes to use dark mode (#46532) 2021-05-25 13:26:24 +02:00
Adrián Moreno
fe34f42aa5 Add new Meteoclimatic integration (#36906)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-05-25 13:11:48 +02:00
Franck Nijhof
c5383219f1 Remove stale debug statements from tests (#51059) 2021-05-25 11:52:20 +02:00
Xuefer
2a47805b4a Close onvif device cleanly (#49659)
* onvif: close device cleanly

Signed-off-by: Xuefer <xuefer@gmail.com>

* onvif: Too many nested blocks

Signed-off-by: Xuefer <xuefer@gmail.com>

* update tests to cover onvif config_flow

Signed-off-by: Xuefer <xuefer@gmail.com>
2021-05-24 15:27:40 -04:00