Commit graph

8610 commits

Author SHA1 Message Date
Erik Montnemery
27b9d7fed0
Fix flaky statistics tests () 2021-05-29 09:00:36 -05:00
J. Nick Koston
c5e5787e1d
Replace sonos discovery thread with ssdp callback registration ()
Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
2021-05-29 08:31:22 -05:00
Ville Skyttä
c2f5dcefa5
Use flow result type constants more () 2021-05-29 14:09:13 +02:00
jjlawren
84f0d3f961
Centralize Sonos subscription logic ()
* 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-28 21:32:50 -05:00
J. Nick Koston
fb50cf9840
Add network and callback support to SSDP ()
Co-authored-by: Ruslan Sayfutdinov <ruslan@sayfutdinov.com>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-05-28 21:18:59 -05:00
Nick Whyte
02cbb2025e
Decrease nsw fuel request volume () 2021-05-28 20:53:20 -05:00
Raman Gupta
19c16e079f
Add separate ozone sensor for climacell () 2021-05-28 23:24:01 +02:00
Erik Montnemery
39c94e8daa
Fix flaky statistics tests ()
* Fix flaky statistics tests

* Tweak
2021-05-28 22:37:17 +02:00
jan iversen
538a189168
Adjust modbus climate to use address/input_type () 2021-05-28 17:57:14 +02:00
Brandon Rothweiler
88dce0ec8f
Address late review of Mazda services ()
* Add services for Mazda integration

* Address review comments

* Follow-up review comments

* Update dict access for send_poi service calls
2021-05-28 17:54:19 +02:00
J. Nick Koston
b3d826f2e2
Fix samsungtv yaml import without configured name () 2021-05-28 16:06:17 +02:00
jan iversen
00507539c1
Change Cover to use address/input_type ()
* Change Cover to use address/input_type.

* Flake.
2021-05-28 13:23:44 +02:00
Erik Montnemery
b339d73109
Weight sensor average statistics by state durations ()
* Weight sensor average statistics by state durations

* Fix test
2021-05-28 13:16:52 +02:00
jan iversen
e45196f9c9
Remove "old" config from modbus binary_sensor () 2021-05-28 12:06:46 +02:00
jan iversen
5afd16ef5d
Move modbus schema validators to validators.py () 2021-05-28 11:38:31 +02:00
jan iversen
47f016b340
Remove old config from cover, including tests ()
* Remove old config and standardize new config.

* Add missing safeguard.
2021-05-28 11:29:37 +02:00
uvjustin
6ad29aec2c
Adjust segment duration calculation in stream ()
* Calculate min segment duration internally

* Rename segments to sequences in StreamOutput

* Fix segment duration calculation in test_worker
2021-05-28 13:36:41 +08:00
jjlawren
e08de22737
Fix totalconnect test calling public host () 2021-05-27 21:30:37 -05:00
Raman Gupta
ca8d09e5e1
Add zwave_js.multicast_set_value service ()
* Add zwave_js.multicast_set_value service

* comment

* Add test for multiple config entries validation

* additional validation test

* brevity

* wrap schema in vol.Schema

* Update homeassistant/components/zwave_js/services.py

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

* do node transform and multicast validation in schema validation

* move poll value entity validation into schema validation, pass helper functions dev and ent reg instead of retrieving it every time

* make validators nested functions since they don't neeed to be externally accessible

* Update homeassistant/components/zwave_js/services.py

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

* Remove errant ALLOW_EXTRA

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-05-27 21:57:35 -04:00
Aaron David Schneider
f7f8672eea
Add tests for sonos switch platform ()
* add tests

* refactor async_added_to_hass

* fix tests and race condition

* use async_get

* typo
2021-05-27 19:56:59 +02:00
tkdrob
c0656878db
Normalize async_setup_entry () 2021-05-27 15:56:20 +02:00
Eduard van Valkenburg
701c4ee624
Update sia tests () 2021-05-27 15:35:17 +02:00
René Klomp
65f2fe9c01
Bump pysma version to 0.5.0 ()
* Use new get_sensors method

* Update pysma requirement

* Update primary codeowner

* Update device_info handling

* Fix LEGACY_MAP

* Updated tests

* Fix pysma references

* Fix pylint raise-missing-from

* Better import of Sensors

* Remove software version related changes

* Revert codeowners change
2021-05-27 12:53:14 +02:00
jan iversen
8d365e8bf5
After merge, review. () 2021-05-27 08:28:31 +02:00
Raman Gupta
877d3e38b4
Fix zwave_js.set_value schema ()
* fix zwave_js.set_value schema

* wrap all schemas in vol.Schema

* readd removed assertions
2021-05-27 00:27:35 -04:00
Joakim Sørensen
3e7729faf2
Handle blank string in location name for mobile app () 2021-05-27 06:04:05 +02:00
uvjustin
38e0cbe964
Change stream sequence number to start from 0 ()
* Use constants for provider strings

* Add last_sequence property
2021-05-27 11:22:31 +08:00
Yuriy Sannikov
6391d75919
Refactor ModbusRegisterSensor class to get hub and configuration ()
* refactor ModbusRegisterSensor to match the ModbusSwitch interface

* Please pylint, mypy etc.

* Remove PLATFORM.

Co-authored-by: jan Iversen <jancasacondor@gmail.com>
2021-05-26 19:28:14 +02:00
Austin Mroczek
22dd7df66c
Improve totalconnect config flow user experience () 2021-05-26 09:48:44 -07:00
ollo69
daff62f42d
Add AsusWRT model and firmware information for device () 2021-05-26 09:46:06 -07:00
Matt Zimmerman
ffb9ab21c1
Add binary sensor for smarttub errors () 2021-05-26 09:25:47 -07:00
J. Nick Koston
64661ee2b7
Add network configuration integration ()
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 ()
* 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 ()
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 () 2021-05-26 08:39:08 -07:00
Raman Gupta
6d9b67ddb2
Add zwave_js heal node and network WS API commands ()
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 ()
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 () 2021-05-26 16:36:36 +02:00
Franck Nijhof
a8a13da793
Fix discovery without uid aborts on completing user flow ()
* 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 () 2021-05-26 14:08:09 +02:00
Massimiliano Cannarozzo
5a5a145778
Make all MQTT cover payloads optional ()
* 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 ()
* 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 ()
* 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 ()
* 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 ()
* Refactor stream to use bytes
2021-05-26 16:19:09 +08:00
Maciej Bieniek
41a940f644
Add state class to Nettigo Air Monitor sensors () 2021-05-26 09:36:37 +02:00
ollo69
d5a9419fb7
Fix AsusWRT sensor test ()
* 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 ()
* 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 

* 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 ()
* 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 () 2021-05-25 16:06:17 -05:00