Erik Montnemery
5c717cbb1d
Prevent opening of sockets in onboarding tests ( #56443 )
2021-09-20 13:56:50 +02:00
Otto Winter
a54854d129
ESPHome Noise Transport Encryption support ( #56216 )
2021-09-20 09:02:17 +02:00
Milan Meulemans
d76163e5be
Add tests for Rituals Perfume Genie number, select and binary_sensor platforms ( #55224 )
2021-09-19 08:51:57 -10:00
J. Nick Koston
88e42a540e
Remove leftover debug prints in tests ( #56409 )
2021-09-19 12:43:02 +02:00
Erik Montnemery
ec52763706
Prevent 3rd party lib from opening sockets in samsungtv tests ( #56334 )
2021-09-18 22:24:27 -10:00
Erik Montnemery
80a57f5118
Prevent 3rd party lib from opening sockets in smhi tests ( #56335 )
2021-09-19 10:18:45 +02:00
Erik Montnemery
f6526de7b6
Use hass_client_no_auth test fixture in nest tests ( #56326 )
2021-09-18 23:17:09 +02:00
Erik Montnemery
43b5dcff76
Use hass_client_no_auth test fixture in withings tests ( #56337 )
2021-09-18 23:12:02 +02:00
Robert Svensson and jjlawren
bf7c2753d5
deCONZ use siren platform ( #56397 )
...
* Add siren.py
* Working siren platform with 100% test coverage
* Also add test file...
* Add test to verify that switch platform cleans up legacy entities now that sirens are their own platform
* Update homeassistant/components/deconz/siren.py
Co-authored-by: jjlawren <jjlawren@users.noreply.github.com >
2021-09-18 21:59:04 +02:00
3ce8109e5e
Add config flow to Switchbot ( #50653 )
...
Co-authored-by: Daniel Hjelseth Høyer <mail@dahoiv.net >
Co-authored-by: J. Nick Koston <nick@koston.org >
2021-09-18 09:25:05 -10:00
jjlawren
f31b9eae61
Fix creating cert_expiry configs during runtime ( #56298 )
...
* Fix creating cert_expiry configs during runtime
* Address review feedback on tests
* Improve delayed startup test
2021-09-18 19:54:54 +02:00
Erik Montnemery
39bc127dd6
Prevent 3rd party lib from opening sockets in glances tests ( #56345 )
2021-09-17 22:22:44 -10:00
Erik Montnemery
be0819b456
Mock out network.util.async_get_source_ip in tests ( #56339 )
2021-09-17 21:40:58 -10:00
J. Nick Koston
0830100df1
Do not reload the isy994 on ip change since there is already a reload listener ( #54602 )
2021-09-17 21:22:14 -10:00
Robert Svensson
539ef31046
Reflect changes to pydeconz v84 ( #56361 )
...
Mostly snake case conversions and typing
But also a change in retry mechanism
Added a more complete set_* call to most types to remove the direct relation to rest API of deCONZ
2021-09-18 09:05:08 +02:00
jan iversen and Paulus Schoutsen
6947912fa9
Modbus entity update does not occur until after scan_interval ( #56221 )
...
* Secure update is called when integration is started.
* Review comments.
* Update homeassistant/components/modbus/base_platform.py
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io >
* Update homeassistant/components/modbus/base_platform.py
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io >
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io >
2021-09-18 08:57:27 +02:00
J. Nick Koston
7524daad86
Fix HomeKit requests with hvac mode and temperature in the same call ( #56239 )
2021-09-17 22:47:06 -07:00
J. Nick Koston
bad6b2f7f5
Standardize yeelight exception handling ( #56362 )
2021-09-17 22:25:19 -07:00
jan iversen
c4195c547c
Update template/test_init.py to use pytest ( #56336 )
2021-09-17 15:13:17 -07:00
Alexei Chetroi
5b0e00a74b
Refactor ZHA HVAC thermostat channel ( #56238 )
...
* Refactor HVAC channel to use zigpy cached attributes
* Allow named attributes in ZHA test attribute reports
* Let attribute write to update cache
* WIP Update tests
* Cleanup
2021-09-17 15:17:34 -04:00
Erik Montnemery
45046941c6
Avoid creating sockets in homekit port available tests ( #56342 )
2021-09-17 04:16:57 -10:00
Joakim Plate
9b00e0cb7a
Rfxtrx device triggers and actions ( #47909 )
...
* Add helper
* Add device actions
* Add trigger
* Just make use of standard command
* Generalize code a bit
* Switch tests to currently existing features
* Add tests for capabilities
* Don't check schema asserted value
* Adjust strings somewhat
* Directly expose action subtypes
* Add a status event test
* Switch to modern typing
* Drop chime that is now part of command
* Adjust strings a bit
* Drop ability to set custom value
* Adjust changed base schema
* Validate triggers
* Try fix typing for 3.8
2021-09-17 15:28:43 +02:00
Erik Montnemery
ecf4a7813a
Prevent 3rd party lib from opening sockets in wilight tests ( #56310 )
2021-09-17 15:27:26 +02:00
Erik Montnemery
797b68b42d
Prevent 3rd party lib from opening sockets in rfxtrx tests ( #56331 )
2021-09-17 12:51:40 +02:00
Erik Montnemery
55a77b2ba2
Prevent 3rd party lib from opening sockets in ps4 tests ( #56330 )
2021-09-17 12:51:25 +02:00
Erik Montnemery
327bf24940
Prevent 3rd party lib from opening sockets in cloud tests ( #56328 )
2021-09-17 12:50:59 +02:00
Erik Montnemery
e0a232aa36
Prevent 3rd party lib from opening sockets in wallbox tests ( #56308 )
2021-09-17 12:50:11 +02:00
Erik Montnemery
a793fd4134
Prevent 3rd party lib from opening sockets in ping tests ( #56329 )
2021-09-16 23:41:19 -10:00
Erik Montnemery
bce4c5eb11
Prevent 3rd party lib from opening sockets in zeroconf tests ( #56324 )
2021-09-16 23:19:32 -10:00
Erik Montnemery
fce7f0873e
Prevent 3rd party lib from opening sockets in sia tests ( #56325 )
2021-09-16 23:19:19 -10:00
Erik Montnemery
8341ae12d3
Mock out zeroconf in homekit_controller tests ( #56307 )
2021-09-16 11:29:41 -10:00
jan iversen
70eb519f76
Update template/test_light.py to use pytest ( #56300 )
2021-09-16 11:05:00 -07:00
Shay Levy
8418d4ade2
Address Switcher late review comments ( #56264 )
...
* Address Switcher late review comments
* Rename wrapper to coordinator
2021-09-16 17:06:58 +02:00
jjlawren
0438c9308c
Delay startup for cert_expiry to allow for self checks ( #56266 )
...
* Delay startup of cert_expiry
* Update tests
2021-09-16 13:31:36 +02:00
Erik Montnemery
8c5efafdd8
Add 5-minute statistics for sensors ( #56006 )
...
* Add 5-minute statistics for sensors
* Address pylint issues
* Black
* Apply suggestion from code review
* Apply suggestions from code review
* Improve tests
2021-09-16 10:57:15 +02:00
Malachi Soord
0656407561
Upgrade pylast from 4.2.0 to 4.2.1 ( #56015 )
...
* Upgrade pylast from 4.2.0 to 4.2.1
* Fix test
* Use MockNetwork
* Tidy
* Fix lint
2021-09-16 07:00:25 +02:00
muppet3000
19054e1ffe
Bump growattServer to 1.1.0 ( #56084 )
2021-09-15 10:08:15 +02:00
epenet
0d842a8f01
Adjust charging_power unit ( #56167 )
2021-09-15 07:54:56 +02:00
jan iversen
692f611109
Update template/test_fan.py to use pytest ( #56215 )
2021-09-14 13:51:46 -07:00
jan iversen
96a9af8cc4
Update template/test_weather.py to use pytest ( #56223 )
2021-09-14 13:06:55 -07:00
jan iversen
4b2ff0a0ba
Update template/alarm_control_panel.py to use pytest ( #56229 )
2021-09-14 13:06:29 -07:00
Ricardo Steijn
2a51bb5bba
Add Crownstone integration ( #50677 )
2021-09-14 09:46:52 -10:00
Erik Montnemery
bac55b78fe
Enforce device class for gas and energy sensors used by energy dashboard ( #56218 )
...
* Enforce device class for gas and energy sensors used by energy dashboard
* Adjust tests
2021-09-14 16:56:36 +02:00
jan iversen and Martin Hjelmare
aaa62dadec
Add service to stop/restart modbus ( #55599 )
...
* Add service to stop/restart modbus.
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2021-09-14 09:42:50 +02:00
Robert Hillis
14aa9c91eb
Add Config Flow to Modem Caller ID integration ( #46677 )
...
* Add phone_modem integration
* Use original domain
* Add init tests for Modem Caller ID
* Clean up tests
* Clean up tests
* apply suggestions
* Fix tests
* Make only one instance possible
* Allow more than 1 device and remove hangup service
* simplify already configured
* Update sensor.py
* Update config_flow.py
* Fix manifest
* More cleanup
* Fix tests
* Ue target
* Clean up sensor.py
* Minor tweaks
* Close modem on restart and unload
* Update requirements
* fix tests
* Bump phone_modem
* rework
* add typing
* use async_setup_platform
* typing
* tweak
* cleanup
* fix init
* preserve original name
* remove callback line
* use list of serial devices on host
* tweak
* rework
* Rework for usb dicsovery
* Update requirements_test_all.txt
* Update config_flow.py
* tweaks
* tweak
* move api out of try statement
* suggested tweaks
* clean up
* typing
* tweak
* tweak
* async name the service
2021-09-13 14:22:54 -10:00
Brian Egge
8d87f4148b
Fix generic thermostat switch state initialization ( #56073 )
2021-09-13 22:27:06 +02:00
c869b78ac1
Add Whirlpool integration ( #48346 )
...
* Add Whirlpool integration
* Apply suggestions from code review
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io >
* Apply suggestions from code review
* Fix lint
* Fix lint and tests
* Apply suggestions from code review
Co-authored-by: J. Nick Koston <nick@koston.org >
* Use dict lookups
* Lint
* Apply code changes from PR review
* Do real integration setup in tests
* Apply suggestions from review & fix test
* Replace get with array operator
* Add suggestions from code review
* Rename test var
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io >
Co-authored-by: J. Nick Koston <nick@koston.org >
2021-09-13 10:02:34 -10:00
Daniel Hjelseth Høyer and J. Nick Koston
f9de8fb49a
Surepetcare config flow ( #56127 )
...
Co-authored-by: J. Nick Koston <nick@koston.org >
2021-09-13 09:57:06 -10:00
5f86388f1c
Netgear config flow ( #54479 )
...
* Original work from Quentame
* Small adjustments
* Add properties and method_version
* fix unknown name
* add consider_home functionality
* fix typo
* fix key
* swao setup order
* use formatted mac
* add tracked_list option
* add options flow
* add config flow
* add config flow
* clean up registries
* only remove if no other integration has that device
* tracked_list formatting
* convert tracked list
* add import
* move imports
* use new tracked list on update
* use update_device instead of remove
* add strings
* initialize already known devices
* Update router.py
* Update router.py
* Update router.py
* small fixes
* styling
* fix typing
* fix spelling
* Update router.py
* get model of router
* add router device info
* fix api
* add listeners
* update router device info
* remove method version option
* Update __init__.py
* fix styling
* ignore typing
* remove typing
* fix mypy config
* Update mypy.ini
* add options flow tests
* Update .coveragerc
* fix styling
* Update homeassistant/components/netgear/__init__.py
Co-authored-by: J. Nick Koston <nick@koston.org >
* Update homeassistant/components/netgear/__init__.py
Co-authored-by: J. Nick Koston <nick@koston.org >
* Update homeassistant/components/netgear/__init__.py
Co-authored-by: J. Nick Koston <nick@koston.org >
* Update homeassistant/components/netgear/config_flow.py
Co-authored-by: J. Nick Koston <nick@koston.org >
* Update homeassistant/components/netgear/router.py
Co-authored-by: J. Nick Koston <nick@koston.org >
* add ConfigEntryNotReady
* Update router.py
* use entry.async_on_unload
* Update homeassistant/components/netgear/device_tracker.py
Co-authored-by: J. Nick Koston <nick@koston.org >
* use cv.ensure_list_csv
* add hostname property
* Update device_tracker.py
* fix typo
* fix isort
* add myself to codeowners
* clean config flow
* further clean config flow
* deprecate old netgear discovery
* split out _async_remove_untracked_registries
* Update homeassistant/components/netgear/config_flow.py
Co-authored-by: J. Nick Koston <nick@koston.org >
* Update homeassistant/components/netgear/config_flow.py
Co-authored-by: J. Nick Koston <nick@koston.org >
* cleanup
* fix rename
* fix typo
* remove URL option
* fixes
* add sensor platform
* fixes
* fix removing multiple entities
* remove extra attributes
* initialize sensors correctly
* extra sensors disabled by default
* fix styling and unused imports
* fix tests
* Update .coveragerc
* fix requirements
* remove tracked list
* remove tracked registry editing
* fix styling
* fix discovery test
* simplify unload
* Update homeassistant/components/netgear/router.py
Co-authored-by: J. Nick Koston <nick@koston.org >
* add typing
Co-authored-by: J. Nick Koston <nick@koston.org >
* add typing
Co-authored-by: J. Nick Koston <nick@koston.org >
* add typing
Co-authored-by: J. Nick Koston <nick@koston.org >
* condense NetgearSensorEntities
Co-authored-by: J. Nick Koston <nick@koston.org >
* Update homeassistant/components/netgear/router.py
Co-authored-by: J. Nick Koston <nick@koston.org >
* Update homeassistant/components/netgear/router.py
Co-authored-by: J. Nick Koston <nick@koston.org >
* Update homeassistant/components/netgear/router.py
Co-authored-by: J. Nick Koston <nick@koston.org >
* Update homeassistant/components/netgear/router.py
Co-authored-by: J. Nick Koston <nick@koston.org >
* add typing
* styling
* add typing
* use ForwardRefrence for typing
* Update homeassistant/components/netgear/device_tracker.py
Co-authored-by: J. Nick Koston <nick@koston.org >
* add typing
* Apply suggestions from code review
Thanks!
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
* process review comments
* fix styling
* fix devicename not available on all models
* ensure DeviceName is not needed
* Update homeassistant/components/netgear/config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
* Update homeassistant/components/netgear/config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
* Update __init__.py
* fix styling
Co-authored-by: J. Nick Koston <nick@koston.org >
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2021-09-13 18:18:21 +02:00
Brian Egge
e638e5bb42
Add component for binary sensor groups ( #55365 )
...
* Add component for binary sensor groups
https://github.com/home-assistant/home-assistant.io/pull/19239
* Accidental push over prior commit
* Add test for any case
* Add unavailable attribute and tests for unique_id
* Added tests for attributes
link to documentation: https://github.com/home-assistant/home-assistant.io/pull/19297
2021-09-13 15:28:37 +02:00