Commit Graph

7744 Commits

Author SHA1 Message Date
Paulus Schoutsen
df72eb7ebb Correctly detect is not home (#53279) 2021-07-21 22:55:34 -07:00
Robert Svensson
f3cb202136 More restrictive state updates of UniFi uptime sensor (#53111)
* More restrictive state updates of uptime sensor

* Remove commented out old version of uptime test
2021-07-21 22:55:30 -07:00
Robert Svensson
6eb2fd7603 Fix groups reporting incorrect supported color modes (#53088) 2021-07-21 22:55:28 -07:00
jan iversen
0e297c288f Allow pymodbus to reconnect in running system (not startup) (#53020)
Allow pymodbus to reconnect (not during startup).
2021-07-21 22:55:27 -07:00
Vincent Le Bourlot
a6ad08f5b6 Increase polling interval to prevent reaching daily limit (#53066)
* increase polling interval to prevent reaching daily limit

* update test accordingly
2021-07-16 09:45:50 +02:00
jjlawren
f17ed626bb More graceful exception handling in Plex library sensors (#52969) 2021-07-16 09:44:37 +02:00
J. Nick Koston
ddf563c247 Add OUIs for legacy samsungtv (#52928) 2021-07-16 09:40:58 +02:00
J. Nick Koston
d2e82edb58 Handle dhcp packets without a hostname (#52882)
* Handle dhcp packets without a hostname

- Since some integrations only match on OUI we want to
  make sure they still see devices that do not request
  a specific hostname

* Update tests/components/dhcp/test_init.py

* Update homeassistant/components/dhcp/__init__.py

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

Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-07-16 09:37:22 +02:00
Doug Hoffman
47b5866d85 Bump pyatv to 0.8.1 (#52849)
* Bump pyatv to 0.8.1

* Update apple_tv tests for new create_session location

* Update test_user_adds_unusable_device to try device with no services

pyatv >=0.8.0 considers AirPlay a valid service and no longer fails under the previous conditions.
2021-07-16 09:37:19 +02:00
puddly
8bd73709a7 Update ZHA to support zigpy 0.34.0 device initialization (#52610)
* Handle `None` node descriptors

* Skip loading uninitialized devices

* Fix unit test incorrectly handling unset cluster `ep_attribute`

* Revert filtering devices by status during startup
2021-07-16 09:37:07 +02:00
Robert Svensson
2a5b447bfd Prefer using xy over hs when supported by light (#52883) 2021-07-12 13:57:18 -07:00
Brandon Rothweiler
df3c8586b5 Upgrade pymazda to 0.2.0 (#52775) 2021-07-12 13:57:12 -07:00
J. Nick Koston
87d4544531 Send ssdp requests to ipv4 broadcast as well (#52760)
* Send ssdp requests to 255.255.255.255 as well

- This matches pysonos behavior and may fix reports of
  inability to discover some sonos devices
  https://github.com/amelchio/pysonos/blob/master/pysonos/discovery.py#L120

* Update homeassistant/components/ssdp/__init__.py
2021-07-12 13:57:10 -07:00
Jc2k
f4fa0d7789 Fix homebridge devices becoming unavailable frequently (#52753)
Update to aiohomekit 0.4.3 and make sure service type UUID is normalised before comparison

Co-authored-by: J. Nick Koston <nick@koston.org>
2021-07-12 13:57:08 -07:00
apaperclip
757388cc31 Remove scale calculation for climacell cloud cover (#52752) 2021-07-12 13:57:07 -07:00
J. Nick Koston
edf517681c Add zeroconf discovery to Sonos (#52655) 2021-07-12 13:57:07 -07:00
avee87
9f40141907 Use iso-formatted times in MetOffice weather forecast (#52672)
* Fixed raw datetime in MetOffice weather forecast

* Use datetime in sensor attribute
2021-07-08 15:24:02 +02:00
Franck Nijhof
57f6a96e31 Ensure Forecast.Solar returns an iso formatted timestamp (#52669) 2021-07-08 15:23:58 +02:00
jjlawren
ef309a7c12 Ignore unused keys from Sonos device properties callback (#52660)
* Ignore known but unused keys from device callback

* Fix bug, add test
2021-07-08 15:23:54 +02:00
Robert Svensson
7a503a6c1f Make use of entry id rather than unique id when storing deconz entry in hass.data (#52584)
* Make use of entry id rather than unique id when storing entry in hass data

* Update homeassistant/components/deconz/services.py

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

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-07-06 18:51:19 +02:00
J. Nick Koston
40d9541d9b Revert nmap_tracker to 2021.6 version (#52573)
* Revert nmap_tracker to 2021.6 version

- Its unlikely we will be able to solve #52565 before release

* hassfest
2021-07-06 18:51:16 +02:00
Aaron Bach
746a52bb27 Fresh attempt at SimpliSafe auto-relogin (#52567)
* Fresh attempt at SimpliSafe auto-relogin

* Fix tests
2021-07-06 18:51:12 +02:00
Raman Gupta
e1c14b5a30 Don't raise when setting HVAC mode without a mode ZwaveValue (#52444)
* Don't raise an error when setting HVAC mode without a value

* change logic based on discord convo and add tests

* tweak
2021-07-06 18:51:01 +02:00
Thibaut
631e555e25 Update Somfy to reduce calls to /site entrypoint (#51572)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-07-06 18:50:57 +02:00
Franck Nijhof
979d37dc19 Fix unavailable entity capable of triggering non-numerical warning in Threshold sensor (#52563) 2021-07-06 11:54:30 +02:00
J. Nick Koston
777cf116aa Update the ip/port in the homekit_controller config entry when it changes (#52554) 2021-07-06 11:54:27 +02:00
Aaron Bach
afb187942a Revert "Force SimpliSafe to reauthenticate with a password (#51528)" (#52484)
This reverts commit 549f779b06.
2021-07-05 13:40:47 +02:00
Erik Montnemery
729f3dc6b8 Avoid duplicated database queries when fetching statistics (#52433) 2021-07-02 17:57:34 +02:00
J. Nick Koston
e4a7347e7d Import track_new_devices and scan_interval from yaml for nmap_tracker (#52409)
* Import track_new_devices and scan_interval from yaml for nmap_tracker

* Import track_new_devices and scan_interval from yaml for nmap_tracker

* Import track_new_devices and scan_interval from yaml for nmap_tracker

* tests

* translate

* tweak

* adjust

* save indent

* pylint

* There are two CONF_SCAN_INTERVAL constants

* adjust name -- there are TWO CONF_SCAN_INTERVAL constants

* remove CONF_SCAN_INTERVAL/CONF_TRACK_NEW from user flow

* assert it does not appear in the user step
2021-07-02 17:57:17 +02:00
Tom Brien
527af96ad9 Add update listener to Coinbase (#52404)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-07-02 17:57:05 +02:00
Erik Montnemery
eea544d2d2 Fix MQTT cover optimistic mode (#52392)
* Fix MQTT cover optimistic mode

* Add test
2021-07-02 17:56:53 +02:00
Joakim Plate
b8b0bc9392 Reject trusted network access from proxies (#52388) 2021-07-02 17:56:48 +02:00
Erik Montnemery
3dcad64d53 Improve sensor statistics tests (#52386) 2021-07-02 17:56:44 +02:00
Alexei Chetroi
8de7312c92 Bump up ZHA dependencies (#52374)
* Bump up ZHA dependencies

* Fix broken tests

* Update tests/components/zha/common.py

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

Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-07-02 17:56:36 +02:00
Erik Montnemery
d450cda385 Report target unit in statistics meta data (#52341) 2021-06-30 16:53:51 +02:00
jan iversen
c0751c060f review comments. (#52337) 2021-06-30 14:34:33 +02:00
Erik Montnemery
0476c7f9ee Normalize temperature statistics to °C (#52297)
* Normalize temperature statistics to °C

* Fix tests

* Support temperature conversion to and from K, improve tests

* Fix test

* Add tests, pylint
2021-06-30 14:17:58 +02:00
Erik Montnemery
0ab999738b Add statistics meta data table (#52331)
* Add statistics meta data table

* Tweak meta data generation
2021-06-30 13:32:17 +02:00
stefano055415
d8337cf98f Add Freedompro (#46332)
Co-authored-by: Milan Meulemans <milan.meulemans@live.be>
Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-06-30 13:21:06 +02:00
Brian Towles
3e4dacb885 Add Modern Forms binary sensor platform (#52312)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-06-30 11:56:02 +02:00
Carlos Gomes
f2906d0fca Add quantiles to Statistics integration (#52189)
* Add quantiles as another Statistics attribute

Quantiles divide states into intervals of equal probability. The
statistics.quantiles() function was added in Python 3.8 and can now
be included in the Statistics integration without new dependencies.

Quantiles can be used in conjunction with other distribution metrics to
create box plots (quartiles) and other graphical resources for
visualizing the distribution of states.

* Add quantiles reference to basic tests
2021-06-30 08:31:33 +02:00
J. Nick Koston
9f16e390f5 Deprecate IPv6 zeroconf setting in favor of the network integration (#51173) 2021-06-29 17:13:31 -10:00
Otto Winter
f772eab7b7 ESPHome delete store data when unloading entry (#52296) 2021-06-29 15:06:24 -07:00
Franck Nijhof
aac0180abf Disable import of disabled eebrightbox in tests (#52314) 2021-06-29 19:59:25 +02:00
Daniel Hjelseth Høyer
ba7ad8a58f Add Melcloud device class and state class (#52276) 2021-06-29 19:16:43 +02:00
Simone Chemelli
7959225fef Add switch platform to Fritz (#51610)
* Add switch platform to Fritz

* Fix tests

* Pylint

* Small fix

* Bump fritzprofiles to fix log level and identifier

* Fix different WiFi networks with same name

* Changed exposed attributes

* Moved to extra_state

* Remove redundant lambda

* Add missing wait

* Removed identifiers

* Update homeassistant/components/fritz/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/fritz/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Add mapping dict

* Device Profile disabled by default

* Heavy cleanup

* Tweak

* Bug fix

* Update homeassistant/components/fritz/switch.py

Co-authored-by: Aaron David Schneider <aaron.schneider@nbi.ku.dk>

* Fix port forward switching + small log improvement

* Cleanup from old approach

* Handle port mapping hot removal (from device)

* Minor fixes

* Typying

* Removed lambda call

* Last missing strict typing

* Split get entities

* Func rename

* Move FritzBoxBaseSwitch to switch.py

* Removed lambda

* Update homeassistant/components/fritz/common.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/fritz/common.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/fritz/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/fritz/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/fritz/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/fritz/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Fixes after applying comments

* Remvoed redundant try block

* Removed broad-except

* Optimized async/sync switch

* Update homeassistant/components/fritz/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/fritz/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/fritz/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Address remaining comments

* Optimize return list

* More optimization for return lists

* Some missing strict typing

* Redundant typing

* Update homeassistant/components/fritz/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Wrong if

* Introduce const for profile status

* Update homeassistant/components/fritz/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/fritz/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Fix mypy

* Switch back to get_local_ip()

* Address latest comments

Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Aaron David Schneider <aaron.schneider@nbi.ku.dk>
2021-06-29 11:57:34 -04:00
Tom Brien
897f5d9247 Coinbase code quality improvements from review (#52307)
* Fix breaking loop if single bad currency

* Remove unneeded update

* Reduce executor calls and use helper

* Avoid setting up integration when not needed in test

* Remove defunct info from strings

* Move already configured check

* Move instance update out of data class init
2021-06-29 11:54:38 -04:00
Erik Montnemery
8a00c3a2f5 Implement color_mode support for kulersky (#52080) 2021-06-29 16:31:29 +02:00
Franck Nijhof
f1b40b683d Disable dependency checks and tests for disabled EE Brightbox integration (#52304) 2021-06-29 16:09:42 +02:00
Erik Montnemery
c785db4ffa Normalize energy statistics to kWh (#52238) 2021-06-29 12:20:10 +02:00