Commit Graph

30383 Commits (cd351cf22bf7fbceae0b4340321d0111f3107163)

Author SHA1 Message Date
Erik Montnemery f3d5c07615
Use async_validate_actions_config helper in scripts (#60287) 2021-11-24 23:35:54 +01:00
Matthias Alphart c808fa8d3d
fix configuration url (#60311) 2021-11-24 23:27:13 +01:00
rikroe 301ef0f636
Fix BMW ConnectedDrive, update to My BMW API (#59881)
* Fix BMW ConnectedDrive, update to My BMW API

* Use const device classes

* Implement native_value via EntityDescription

* Use device class const, reomve device_class from charging_status

* Cleanup

* Remove max_range_electric

* Revert removing sensor name & unique_id

* Add region china again, update bimmer_connected

* Update to bimmer_connected==0.8.2

Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2021-11-24 23:18:45 +01:00
Sergiy Maysak de1527d0e9
Add wirelesstag ambient temperature sensor for Outdoor Probe (#60243)
* Added support for ambient temperature sensor for Outdoor Probe.

* Switched to use of SensorEntityDescription for device_class.

* Removed unused config param, restored use of _sensor_type ivar.

* Use entity descriptions as dict for shorter iteration.

* Clean up

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-11-24 23:02:18 +01:00
Maciej Bieniek 970df6d067
Move sensor stuff to the sensor platform in Brother integration (#60306) 2021-11-24 22:50:35 +01:00
Ville Skyttä 9f4de8df18
Make device entry disabled by an enum (#60239) 2021-11-24 22:32:16 +01:00
alim4r 42389fc81b
Support numeric sensors with no unit_of_measurement in prometheus (#60157) 2021-11-24 22:30:08 +01:00
Matthias Lohr 5853d81944
Add tolo light platform (#60305) 2021-11-24 22:26:08 +01:00
Franck Nijhof 37219e8d04
Add button platform to Tuya (#60304) 2021-11-24 21:10:26 +01:00
Matthias Lohr a399037a46
Add TOLO Sauna (tolo) integration (#55619) 2021-11-24 20:45:13 +01:00
Fabian Seitz 2439f6b562
Bump openwrt-luci-rpc from 1.1.8 to 1.1.11 (#60124) 2021-11-24 20:12:39 +01:00
Erik Montnemery 7c3edf24f2
Allow MQTT selects to have a single or no options (#60281) 2021-11-24 20:06:12 +01:00
J. Nick Koston fd116fc408
Refactor zeroconf matching to be more DRY (#60293) 2021-11-24 19:57:13 +01:00
J. Nick Koston 86cd46a0dd
Add support for adjusting effect brightness in flux_led (#60247) 2021-11-24 19:55:00 +01:00
Franck Nijhof 39f5eba97d
Use native datetime value in OpenWeatherMap sensors (#60303) 2021-11-24 19:51:25 +01:00
Franck Nijhof fa34153b20
Use UTC timestamp in uptime sensor (#60240) 2021-11-24 15:00:54 +01:00
epenet 5a8cbb8cab
Use UsbServiceInfo in zwave-js (#60267)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-24 07:51:28 -06:00
epenet 3bf12fcd29
Use UsbServiceInfo and ZeroconfServiceInfo in zha (#60266)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-24 07:50:45 -06:00
epenet d990fe1957
Update ssdp matching_domain constant (#60283)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-24 07:49:44 -06:00
Thomas Dietrich b8f4b76194
Add additional statistics characteristics, remove attributes (#59867)
* Add additional statistics characterics, improve rounding

* Improve name of age_usage_ratio

* Replace difference by three relevant distances

* Refactor attributes, remove stats, add metadata

* Fix binary sensor testcase

* Fix sensor defaults testcase

* Fix and enhance all testcases

* Remove age coverage from attr when not configured

* Refactor so only the relevant characteristic value is calculated

* Rename unclear characteristics, add timebound average

* Fix coverage warning

* Remove explicit functions dict
2021-11-24 13:42:44 +01:00
h2zero f4f945e65e
Fix Konnected multiple discovery of panels (#59953)
* Konnected - Fix multiple discovery of panels.

This resolves an issue which creates multiple discoveries of a Konnected panel if it is restarted and fails to connect to home assistant.

See #57467.

* Revert changes to user step, add handling to ssdp step.

* Add abort reason string to strings.json

* Abort ssdp discovery if device is already known.

* Add test for multiple discovery fix.

* Remove unrelated file change.

* Add ssdp discovery abort tests.

* Add missing abort reason check.

* Add "already_configured" to strings.

* Use "cannot_connect" abort reason.
2021-11-24 11:35:00 +01:00
Michael Kowalchuk 74cfbf5f42
Use configured speed ranges for HomeSeer FC200+ fan controllers in zwave_js (#59697)
* Use configured speed ranges for HomeSeer FC200+ fan controllers in zwave_js

* Fix pylint errors

* Remove unused param in tests

* Fix test values

* Address various review notes

* Remove now-redundant assertion

* Add an additional test case for set_percentage=0

* Use round() instead of int() for percentage computations; this makes the percentage setting match the setpoints in the UI

* Add additional tests

* Fix pct conversions

* Make conversion tests exhaustive

* Add tests for discovery data templates

* Revert "Add tests for discovery data templates"

This reverts commit 85dcbc0903.

* Improve typing on ConfigurableFanSpeedDataTemplate#resolve_data

* Move config error handling to the discovery data template

* Fix checks for config data

* Revise fallback logic in percentage_to_zwave_speed and ensure that the speed list is non-empty

* Rework error handling

* Fix runtime fan speed updates

* Use warning instead of warn

* Move data validation to get_speed_config; turns out that resolve_data is only called once, at startup.

* Temporarily remove the not-yet-used fixed fan speed template.  Add an additional assertion to ensure speeds are sorted.

* Add a comment about the assertions in discovery_data_template.py

* Update homeassistant/components/zwave_js/discovery_data_template.py

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

* Fix typo in comment

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-11-24 11:31:59 +01:00
Matthias Alphart 1a5f2c9c32
Disable less popular Fronius entities by default (#60264) 2021-11-24 11:17:38 +01:00
Franck Nijhof dee4ce921d
Correct entity category on UPS type in NUT (#60277) 2021-11-24 10:46:31 +01:00
epenet 9027ee7828
Revert "Add type hints to SSDP (#59840)" (#60270) 2021-11-24 10:14:48 +01:00
epenet 4ffb0b8380
Use UsbServiceInfo in modem_callerid (#60268)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-24 09:40:52 +01:00
Felipe Martins Diel 774e1b0022
Decouple BroadlinkDevice.available property (#58853)
* Decouple BroadlinkDevice.available property

* Exclude unreachable line from coverage
2021-11-23 21:59:18 -06:00
J. Nick Koston be94ce42a5
Prevent get_mac_address from blocking event loop in samsungtv config flow (#60246) 2021-11-24 03:16:09 +01:00
cvroque 4555f52e50
Add configuration entities to Tuya Vacuum (sd) (#59936) 2021-11-24 02:15:49 +01:00
Matthias Alphart 3dac661480
Rewrite Fronius integration (#59686)
* Add unique_id and use DataUpdateCoordinator in Fronius (#57879)

* initial refactoring commit - meters

- config_flow (no strings, no tests yet)
- import yaml config
- FroniusSolarNet class for holding Fronius object , coordinators and some common data
- meter descriptions
- update coordinator
- entities (including devices)

* storage controllers

* error handling on init; inverter unique_id

* inverters

* power_flow

* fix VA, var, varh not valid for device_class power/energy

and add custom icons

* add SolarNet device for system wide values

* cleanup

* config_flow strings

* test config_flow

* use pyfronius 0.7.0

* enable strict typing

* remove TODO comments

* fix lint errors; move FroniusSensorEntity to sensor.py

* power_flow as optional coordinator

API V0 doesn't support power_flow endpoint

* show error message in logs

* prevent parallel requests to one host

* logger_info coordinator

* store FroniusSolarNet reference directly in coordinator

* cleanup coordinators when unloading entry

* round floats returned by Fronius API

* default icons for grid im/export tariffs

* small typing fix

* Update homeassistant/components/fronius/sensor.py

Co-authored-by: Brett Adams <Bre77@users.noreply.github.com>

* DC icons

* prepend names with "Fronius" and device type

to get more reasonable default entity_ids (eg. have them next to each other when alphabetically sorted)

* remove config_flow and devices

* rename _FroniusUpdateCoordinator to FroniusCoordinatorBase

and mark ABC

* move SensorEntityDescriptions to sensor.py

* Revert "move SensorEntityDescriptions to sensor.py"

This reverts commit 2e5a726eb6.

* Don't raise ConfigEntryNotReady and use regular refresh method

* move bridge initialization out of helper class

* no coverage tests

* power_flow update interval 10 seconds

* move SensorEntityDescriptions to sensor.py

without introducing a circular dependency

* deprecation warning for CONF_MONITORED_CONDITIONS

* remove extra_state_attributes form meter sensor entities

* readd diagnostic entities

* decouple default entity_id from default name

* use key instead of name for entity_id

and make deprecated config key optional

* adjust tests

* use old entity_ids

these changes are now backwards compatible

* check coverage

* simplify entity description definitions

* restore entity names of previous implementation

Co-authored-by: Brett Adams <Bre77@users.noreply.github.com>

* Add config_flow for Fronius integration (#59677)

* Cleanup Fronius config_flow and tests (#60094)

* Add devices to Fronius integration (#60104)

* New entity names for Fronius entities (#60215)

* Adaptive update interval for Fronius coordinators (#60192)

Co-authored-by: Brett Adams <Bre77@users.noreply.github.com>
2021-11-24 02:04:36 +01:00
Oleksandr Kapshuk d677baba36
Add hjjcy device category to Tuya integration (#60224) 2021-11-23 23:42:21 +01:00
Kamil Doległo a7c44d89e1
Fix Tuya integration for climate devices (#60229) 2021-11-23 23:33:36 +01:00
cvroque 28da8c474c
Check if Tuya Vacuum (sd) is able to report status directly before using pause switch (#59888) 2021-11-23 23:32:03 +01:00
Maciej Bieniek ac3dc0b090
Use native datetime value in NAM uptime sensor (#60241) 2021-11-23 23:25:48 +01:00
Michael Chisholm 9fa6daf47a
dlna_dmr: Ignore philips tv (#60204) 2021-11-23 23:22:34 +01:00
Maciej Bieniek 4649bc3c11
Add LED brightness for Xiaomi Miio ZA5 fan (#60134) 2021-11-23 23:21:07 +01:00
Erik Montnemery 615198a58f
Use pychromecast CastInfo type in cast integration (#60205) 2021-11-23 23:17:58 +01:00
Michael 027577805e
Use attribute shortcuts in Samsung TV integration (#60171)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-11-23 23:15:05 +01:00
Andreas Brett cee5595ba7
Add pi_hole entity "available_updates" (#56181)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-11-23 23:05:27 +01:00
epenet 44611d7e26
Use dataclass for ZeroconfServiceInfo (#60206)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-23 22:59:36 +01:00
Michael 2de0a14db0
Use native datetime value in IPP sensors (#60234) 2021-11-23 22:55:32 +01:00
Erik Montnemery 135778fe91
Enable basic type checking for awair (#55046) 2021-11-23 22:49:42 +01:00
avee87 9088a6a138
Add device registry entry for MetOffice (#58683) 2021-11-23 22:45:23 +01:00
Marc Mueller 6089aef072
Enable strict typing - wallbox (#59301) 2021-11-23 22:30:22 +01:00
J. Nick Koston ce369bb336
Reduce flux_led light turn on complexity (#60139) 2021-11-23 22:23:38 +01:00
Sergiy Maysak 73d4445f80
Bumped version of wirelesstagpy to 0.8.0 (#60125) 2021-11-23 22:21:10 +01:00
Robert Dunmire III fd8229f4f4
Bump librouteros version to 3.2.0 (#60066) 2021-11-23 22:18:19 +01:00
J. Nick Koston 52e0027fad
Limit homekit sources to prevent exceeding 100 limit (#59743) 2021-11-23 22:15:08 +01:00
Franck Nijhof 5c443b626a
Use native datetime value in MQTT sensors (#59923) 2021-11-23 22:10:14 +01:00
epenet 4480e1255a
Use MqttServiceInfo in tasmota (#60113)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-23 22:07:10 +01:00
Philip Allgaier a5dc0e37b8
Consistent capitalization for Synology DSM entity names (#60237) 2021-11-23 22:06:05 +01:00
bashworth df5d678858
Tado ignore fix (#60011)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-11-23 22:00:42 +01:00
J.P. Krauss 2d29ef9b63
Avoid errors when AirNow API does not return all expected pollutants (#60232)
Co-authored-by: Aaron Bach <bachya1208@gmail.com>
2021-11-23 21:54:53 +01:00
Michael a3bf56c11d
Use native datetime value in Systemmonitor sensors (#60236) 2021-11-23 21:46:31 +01:00
Henrik 0a0928b9f5
Add daikin sensor state class (#60145)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-11-23 21:46:10 +01:00
Ville Skyttä 7c6a72b086
Remove unneeded pylint disables (#60235) 2021-11-23 21:40:53 +01:00
Michael 6588879b6e
Use native datetime value in AVM Fritz!Tools sensors (#60233) 2021-11-23 21:20:51 +01:00
Michael 9a328eae67
Use native datetime value in Synology DSM sensors (#60176) 2021-11-23 20:03:22 +01:00
Maikel Punie c27948a82a
Fully migrate to attribute shorthand in velbus (#59797)
* Move velbus completly to _attr instead of propertys

* Commit all sugestions

* One more sugestion

* Fixed light.py
2021-11-23 12:10:03 -06:00
J. Nick Koston 881d35ab17
Split up yeelight code into multiple files (#59990) 2021-11-23 11:56:07 -06:00
J. Nick Koston 6524cd4eb2
Fix user input malformed with deleted entities in HomeKit exclude flow (#60061) 2021-11-23 11:46:54 -06:00
J. Nick Koston 400aaeaa91
Ensure homekit setup messages run in event loop (#60226) 2021-11-23 11:40:20 -06:00
epenet cbbf22db52
Use dataclass for UsbServiceInfo (#60140)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-23 10:51:54 -06:00
Franck Nijhof 7a0ff4e2e1
Add button support to Alexa (#60163) 2021-11-23 08:19:13 -08:00
Michael e3910856ad
Use native datetime value in Shelly sensors (#60179)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-11-23 08:18:58 -08:00
Raman Gupta d249743ccf
Bump zwave-js-server-python to 0.33.0 (#60213) 2021-11-23 10:53:46 -05:00
epenet f6bbdec6cb
Use BaseServiceInfo inheritance in MqttServiceInfo (#60207)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-23 16:52:33 +01:00
Erik Montnemery 7e08238cd8
Bump pychromecast to 10.1.1 (#60214) 2021-11-23 09:38:31 -06:00
micha91 e615e70e49
Add Yamaha MusicCast zone specific devices (#58285) 2021-11-23 16:29:34 +01:00
epenet 560546f65e
Use dataclass for DhcpServiceInfo (#60136)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-23 13:35:53 +01:00
Ville Skyttä 39691faccc
Use DeviceEntryType in non-typechecked code too (#58646) 2021-11-23 10:04:33 +01:00
epenet 3b0d984959
Use dataclass for MqttServiceInfo (#60191)
* Use dataclass for MqttServiceInfo

* Drop test exception

Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-23 09:01:40 +01:00
Franck Nijhof 42ed6ddba3
Add button support to Google Assistant (#60158) 2021-11-22 20:50:21 -08:00
Aaron Bach 0e4de42539
Alter RainMachine to enable/disable program/zones via separate switches (#59617) 2021-11-22 20:47:01 -07:00
Paulus Schoutsen 4ff3b2e9a9
Bump frontend to 20211123.0 (#60184) 2021-11-22 19:07:27 -08:00
J. Nick Koston 4af5cde738
Include model name in flux_led discovery when available (#60105) 2021-11-22 20:21:46 -06:00
J. Nick Koston cb3b19b000
Add support for adjusting flux_led effects speed (#59679) 2021-11-22 16:52:06 -08:00
Milan Meulemans 5550b5445b
Add Button platform to Nanoleaf (#60169)
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-11-23 01:26:37 +01:00
GitHub Action 9e606abb0c [ci skip] Translation update 2021-11-23 00:13:54 +00:00
Tim Rightnour 3639481027
Add sensors to venstar integration (#58851) 2021-11-22 18:05:12 -06:00
Franck Nijhof 766c889e70
Add button support to HomeKit (#60165)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-11-23 00:46:51 +01:00
Aaron Bach c87ab574a7
Fix bug with how SimpliSafe lock's respond to websocket events (#60152) 2021-11-22 12:28:22 -07:00
Aaron Bach 93ad486439
Fix missing pending state for SimpliSafe (#60151) 2021-11-22 12:24:51 -07:00
Milan Meulemans 637b6bbb97
Upgrade aionanoleaf to 0.0.4 (#60160) 2021-11-22 19:49:24 +01:00
Ville Skyttä 053c456199
Change device entry type to an StrEnum (#59940)
Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-11-22 18:14:15 +01:00
Erik Montnemery 4a5238efa5
Add support for calculating daily and monthly fossil energy consumption (#59588) 2021-11-22 09:10:54 -08:00
Erik Montnemery 49a27e12ad
Add support to entity registry for overriding device_class (#59985) 2021-11-22 08:38:06 -08:00
epenet 67e13b35db
Revert "Create new usb constants (#60086)" (#60137)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-22 10:28:10 -06:00
Franck Nijhof 69b7495324
Sensor: Handle local->UTC conversion and reject timezoneless timestamps (#59971) 2021-11-22 17:04:06 +01:00
epenet 7e1b00c491
Use ZeroconfServiceInfo in wled (#60130)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-22 08:19:54 -06:00
epenet c8451001a0
Use ZeroconfServiceInfo in xiaomi_aqara (#60131)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-22 08:19:01 -06:00
epenet 2cd241ff0a
Use ZeroconfServiceInfo in xiaomi_miio (#60132)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-22 08:18:22 -06:00
epenet 8b26b69366
Use ServiceInfo in yeelight (#60127)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-22 08:15:14 -06:00
Hans Oischinger 38b976e6d6
Add vicare config flow (#56691)
* Configuration via UI

Config flow / YAML deprecation
- Support discovery via MAC address
- Support import of YAML config
- Switch to ConfigEntry, get rid of platform setup

* Fix review comments

* More tests for vicare yaml import
2021-11-22 15:06:42 +01:00
Cliffano Subagio a7382c8092
Fix KeyError when Twitter app permission is set to Read (#60018) 2021-11-22 14:38:36 +01:00
h2zero 3b5a7d001f
Fix Konnected DS18B20 poll interval (#59954)
* Konnected - Fix DS18B20 poll interval.

The poll interval for the DS18B20 was not being sent to the device.

* Fix tests
2021-11-22 14:01:37 +01:00
jan iversen 5608b4fb18
Update CODEOWNERS for tradfri (#60023)
Co-authored-by: rianadon <ryanadolf123@gmail.com>
2021-11-22 13:43:04 +01:00
Franck Nijhof d95c615f86
Add binary sensor platform to WLED (#59798) 2021-11-22 13:22:43 +01:00
Glenn Waters 65d1f8183f
Fix Environment Canada server loading (#60087)
* Reduce number of requests hitting EC servers.

* Bump lib.
2021-11-22 12:40:25 +01:00
epenet 10d0870198
Use ZeroconfServiceInfo in plugwise (#60050) 2021-11-22 12:35:52 +01:00
G Johansson 29761e6eef
Fix logger setting Yale Smart Living (#60033) 2021-11-22 12:17:55 +01:00
Aaron Godfrey c70a7020f5
Fix todoist due_today attribute for calendar events (#60038)
The attribute was comparing a UTC date to a local date which caused the
attribute to not be true in some cases.
2021-11-22 12:03:56 +01:00
Franck Nijhof 8b30cb509f
Cleanup customize API endpoint (#59824) 2021-11-22 12:01:56 +01:00
epenet 39149e19f7
Use ZeroconfServiceInfo in tado (#60111)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-22 11:54:15 +01:00
epenet 70f43a1415
Use ZeroconfServiceInfo in tradfri (#60112)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-22 11:49:37 +01:00
epenet 5a40322cda
Use ZeroconfServiceInfo in volumio (#60116)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-22 11:48:06 +01:00
Aaron Bach 1da251860e
Fix bugs causing SimpliSafe entities to incorrectly show `unavailable` (#59955) 2021-11-21 21:32:03 -07:00
Simone Chemelli 82a422930b
Honor "Enable newly added entities" for Fritz (#59948) 2021-11-21 18:51:48 -06:00
RenierM26 02b72d8c23
Bump ezviz api 0.2.0.5 (#60090) 2021-11-21 18:51:22 -06:00
jjlawren aa5cf175f4
Set Sonos availability based on activity and discovery (#59994) 2021-11-21 18:48:57 -06:00
epenet 263101b2ab
Create new usb constants (#60086) 2021-11-21 18:14:42 -06:00
GitHub Action 31d4239b64 [ci skip] Translation update 2021-11-22 00:13:02 +00:00
ollo69 176245e5be
Use format_mac for AsusWRT ScannerEntity Mac Address (#54959)
* Use format_mac for AsusWRT ScannerEntity mac

* Fix after rebase

* Change check for duplicated entities
2021-11-21 14:45:40 -08:00
jugla e4931e242a
Allow atome reauthentication on error (#59452)
* allow reauthentification on error

* Allow reauthentification on error

* allow reauthentification on error

* allow reauthentification on error

* Set one fonction for day/month/week/year and allow retry on error

* allow retry and manage return status

* local variable in retrieve_period_usage_with_retry

* Use If statement rather than exception

* remove blank

* code format

* Reduce variable

* remove useless variable

* get method return false and pylint no else-return

* remove blank

* trailing white space
2021-11-21 14:38:37 -08:00
Simone Chemelli c4128f853d
Add climate platform to Shelly (#59712)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-11-21 16:34:00 -06:00
epenet 382efef2e2
Use DhcpServiceInfo in squeezebox (#60100) 2021-11-21 16:33:44 -06:00
epenet 4e1089cedb
Use DhcpServiceInfo in somfy_mylink (#60099) 2021-11-21 16:33:34 -06:00
epenet 8f7f32d844
Use DhcpServiceInfo in screenlogic (#60103) 2021-11-21 16:33:26 -06:00
epenet 4555820987
Use ZeroconfServiceInfo in shelly (#60098) 2021-11-21 16:33:20 -06:00
epenet fa9465d003
Use ZeroconfServiceInfo in system_bridge (#60102) 2021-11-21 16:33:06 -06:00
epenet 1c15544d7a
Use ZeroconfServiceInfo in smappee (#60096) 2021-11-21 15:50:29 -06:00
epenet b465131170
Use ZeroconfServiceInfo in sonos (#60095) 2021-11-21 15:49:50 -06:00
epenet b9cbfbae58
Use ZeroconfServiceInfo in nut (#60047) 2021-11-21 15:49:03 -06:00
epenet 7560f11680
Use ZeroconfServiceInfo in roku (#60053) 2021-11-21 11:27:35 -06:00
epenet 2270e920c3
Use ZeroconfServiceInfo in modern_forms (#60043) 2021-11-21 17:37:09 +01:00
epenet 95075448bd
Use DhcpServiceInfo in nuki (#60046) 2021-11-21 17:35:51 +01:00
epenet 36a67d060b
Use ZeroconfServiceInfo in octoprint (#60049) 2021-11-21 17:35:24 +01:00
epenet c3e9c1a7e8
Use DhcpServiceInfo in powerwall (#60051) 2021-11-21 07:56:22 -06:00
epenet 8ec30aa9ad
Use ZeroconfServiceInfo in rachio (#60054) 2021-11-21 07:55:54 -06:00
epenet 435eb97495
Use DhcpServiceInfo in roomba (#60056) 2021-11-21 07:54:39 -06:00
epenet 25e5263954
Use ZeroconfServiceInfo in nanoleaf (#60045) 2021-11-21 07:51:50 -06:00
Dan Klaffenbach 56e93ff0ec
Add support for HEOS groups (#32568)
* Add support for grouping HEOS media players

* Update homeassistant/components/heos/media_player.py

Co-authored-by: Andrew Sayre (he/his/him) <6730289+andrewsayre@users.noreply.github.com>

* Update homeassistant/components/heos/media_player.py

Co-authored-by: Andrew Sayre (he/his/him) <6730289+andrewsayre@users.noreply.github.com>

* Update homeassistant/components/heos/media_player.py

Co-authored-by: Andrew Sayre (he/his/him) <6730289+andrewsayre@users.noreply.github.com>

* Update homeassistant/components/heos/media_player.py

Co-authored-by: Andrew Sayre (he/his/him) <6730289+andrewsayre@users.noreply.github.com>

* Update homeassistant/components/heos/media_player.py

Co-authored-by: Andrew Sayre (he/his/him) <6730289+andrewsayre@users.noreply.github.com>

* Update homeassistant/components/heos/media_player.py

Co-authored-by: Andrew Sayre (he/his/him) <6730289+andrewsayre@users.noreply.github.com>

* Handle groups at controller level, refine tests.

Co-authored-by: Andrew Sayre (he/his/him) <6730289+andrewsayre@users.noreply.github.com>

* Fix linting issues

* Update homeassistant/components/heos/media_player.py

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

* Update homeassistant/components/heos/media_player.py

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

* Rename variables and improve resolving of entity_ids

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

* Don't patch internal methods

Use the pytest fixtures which have already been defined for this.

* Fix linting issues

* Remove unused property

* Ignore groups with unknown leader

This makes sure that the group_members attribute won't contain a `None`
value as a leader entity_id.

* Don't call force_update_groups() from tests

* Don't pass `None` player ids to HEOS API

* Use signal for group manager communication

* Use imports for async_dispatcher_send/async_dispatcher_connect

* Raise exception when leader/player could not be resolved

* Disconnect signal handlers, avoid calling async_update_groups too early

* Update homeassistant/components/heos/__init__.py

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

Co-authored-by: Andrew Sayre (he/his/him) <6730289+andrewsayre@users.noreply.github.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-11-21 12:57:31 +01:00
G Johansson 0dece582e4
Improve coordinator for yale_smart_alarm (#54091)
* Commit coordinator adjustments

* Review changes
2021-11-21 12:11:36 +01:00
Daniel Perna 9197512ed1
Fix Sensors for HmIP-DLD (#59804) 2021-11-21 12:09:55 +01:00
epenet ba93a384a7
Use ZeroconfServiceInfo in nam (#60044) 2021-11-21 10:25:34 +01:00
Simone Chemelli f606ba3b23
Detail reason for ConfigEntryNotReady (#60062) 2021-11-21 10:25:18 +01:00
Allen Porter 7e0ddd1d8c
Bump google-nest-sdm to 0.4.0 (#60068)
Full changelog: https://github.com/allenporter/python-google-nest-sdm/compare/0.3.9...0.4.0

All changes are in new code and is expected to be a no-op for the current code.

This release introduces a new API for fetching events for upcoming features in Home Assistant,
namely fetching camera clips for battery cameras. The new API is uniform across old and new
cameras.
2021-11-21 08:10:09 +01:00
epenet 85b37a8532
Use ZeroconfServiceInfo in rainmachine (#60055) 2021-11-21 08:08:45 +01:00
Avi Miller e056f9aa0f
Explicitly cast the SOMA API response to an integer (#60071)
This resolves the `TypeError: unsupported operand type(s) for -: 'int'
and 'str'` error.

Fixes #60070.

Signed-off-by: Avi Miller <me@dje.li>
2021-11-20 22:31:45 -08:00
Simone Chemelli 23f37d0127
Bump aioshelly to 1.0.5 (#60058) 2021-11-20 16:59:45 -08:00
GitHub Action e98977fb49 [ci skip] Translation update 2021-11-21 00:13:51 +00:00
Marcel van der Veldt 7161a0bf2a
Add guard for already migrated Hue entity (#59930)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-11-20 14:46:11 -08:00
Marcel van der Veldt 4820acb897
Fix for deviceless entities in Hue integration (#59820) 2021-11-20 14:45:51 -08:00
epenet df3f3321f2
Use ZeroconfServiceInfo in hue (#59980)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-20 14:39:14 -08:00
J. Nick Koston 2412afbacd
Add configuration_url to lutron_caseta (#60015) 2021-11-20 09:45:25 -06:00
Marvin Wichmann 769661adc3
KNX christmas cleaning #2 - remove old migrations (#60026)
* Remove old migrations from KNX integration

* Remove cover migration
2021-11-20 16:34:59 +01:00
Jared Hobbs 6d4b74f8f2
Add haa vendor extensions (#59750)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-11-20 09:22:10 -06:00
Franck Nijhof 70990ebf81
Add WLED Live Override controls (#59783) 2021-11-20 09:15:47 -06:00
Marvin Wichmann 1d63ae8696
Code quality improvements for KNX integration (#60024) 2021-11-20 16:15:33 +01:00
Franck Nijhof 25f491ad16
Add WLED reverse effect switch (#59778) 2021-11-20 08:57:47 -06:00
J. Nick Koston bf79db4226
Add harmony configuration url (#60014) 2021-11-20 08:34:09 -06:00
Ville Skyttä f305d99af9
Add integration filtering and error if core options to helpers.frame.report (#60009)
Reduces some existing and upcoming boilerplate.
2021-11-20 12:53:04 +02:00
Marvin Wichmann e5c33474e3
Add config and options flow to KNX integration (#59377) 2021-11-20 11:30:41 +01:00
Ullrich Neiss 40104de0bf
Address late review of kostal plenticore (#59998) 2021-11-20 11:16:53 +01:00
epenet d0ff8a9b76
Add id constant for homekit discovery (#59986) 2021-11-20 10:07:59 +00:00
J. Nick Koston 59f10373ad
Add configuration url to august (#60013) 2021-11-19 21:55:51 -06:00
Guido Schmitz 02423d6edc
Add long-term statistics support for devolo Home Control (#57612)
* Add long-term statistics support

* Fix messed up rebase
2021-11-19 19:52:33 -08:00
Aaron Bach 394ccae8a1
Migrate appropriate Ambient PWS sensors to use datetime state objects (#59942) 2021-11-19 18:06:39 -07:00
Aaron Bach 40570b572d
Migrate appropriate ReCollect Waste sensors to use datetime state objects (#59943) 2021-11-19 18:06:23 -07:00
GitHub Action 72b0eb719e [ci skip] Translation update 2021-11-20 00:12:27 +00:00
Diogo Gomes e8970d6390
Bump roombapy to 1.6.4 (#60008) 2021-11-19 23:46:45 +01:00
Daniel Hjelseth Høyer 5f8646600f
Correct supported_features and model for Mill (#59996)
* Correct supported_features and model for Mill

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Correct supported_features and model for Mill

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* revert

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Mill

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-11-19 17:19:56 -05:00
Daniel Hjelseth Høyer 4f89ce4fb8
Bump Mill library (#59995)
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-11-19 17:18:52 -05:00
Aaron Bach 8f6796f428
Prevent IQVIA from blocking other integrations' startup (#60001) 2021-11-19 14:01:26 -07:00
Aaron Bach dedc4a8285
Prevent OpenUV from blocking other integrations' startup (#59956)
* Prevent OpenUV from blocking other integrations' startup

* Comment
2021-11-19 13:53:47 -07:00
Robert Svensson 6f091d235f
Fix late comment correcting kwargs should always be Any in deCONZ covers (#59997)
* Fix late comments correcting kwargs should always be Any
2021-11-19 21:16:21 +01:00
Guido Schmitz da68cfa821
Bump devolo_plc_api to 0.6.3 (#59991) 2021-11-19 19:31:28 +01:00
epenet 386520b883
Use ZeroconfServiceInfo in ipp (#59983)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-19 10:16:34 -06:00
epenet e3ee19d0c4
Use ZeroconfServiceInfo in kodi (#59984)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-19 10:16:28 -06:00
epenet 8a4d3b2a2e
Use ZeroconfServiceInfo in lookin (#59987)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-19 10:16:07 -06:00
jjlawren 81e02a39df
Ignore non-Sonos SSDP devices with Sonos-like identifiers (#59809) 2021-11-19 10:14:12 -06:00
epenet 9aa41be8b7
Use ZeroconfServiceInfo in lutron_caseta (#59988)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-19 09:36:18 -06:00
starkillerOG 2b7bcd6aeb
Yeelight disable polling (#59885)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-11-19 09:02:07 -06:00
epenet 14d4a9a69d
Use DhcpServiceInfo in isy994 (#59982)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-19 08:14:25 -06:00
epenet 982f2065c8
Use ZeroconfServiceInfo in homekit_controller (#59979)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-19 08:13:56 -06:00
epenet d6c5aaa0cb
Use ServiceInfo in hunterdouglas_powerview (#59981)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-19 08:12:31 -06:00
epenet f17d58a049
Use DhcpServiceInfo in emonitor (#59965)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-19 12:48:51 +01:00
Franck Nijhof a51f2a433f
Upgrade pyatmo to 6.2.0 (#59975) 2021-11-19 12:36:25 +01:00
epenet 59547289b4
Use DhcpServiceInfo in broadlink (#59961)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-19 12:29:20 +01:00
epenet 2aa8c2cf74
Use DhcpServiceInfo in gogogate2 (#59968)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-19 12:19:37 +01:00
epenet e23cc3ecbf
Optimise use of ZeroconfServiceInfo (#59966)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-19 12:17:49 +01:00
deftdawg b8ec0825d3
Add energy support to Neurio_Energy (#54445)
* - Patch Neurio_Energy to support new HA energy

Enables the Neurio Energy Meter as a Consumption device for Home Assistant Energy

* Only return last_reset value for DEVICE_CLASS_ENERGY

* Update homeassistant/components/neurio_energy/sensor.py

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

* Update with recommendations from CI/Black

* Support new style typing

* Attempt setting the state_class statically

* Make state class static

* Changing state class to STATE_CLASS_TOTAL_INCREASING and removing last_reset seems to work ok

* Remove unused datetime import that was previously in last_reset

* Apply suggestions from code review

apply emontnemery's recommended changes

Co-authored-by: Erik Montnemery <erik@montnemery.com>

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-11-19 09:16:08 +01:00
J. Nick Koston 2f00f8d3de
Prevent executor overload when starting many homekit instances (#59950) 2021-11-18 22:39:49 -08:00
Franck Nijhof 073bf6d6fd
Use native datetime value inMobile App sensors (#59945) 2021-11-18 22:36:28 -08:00
Franck Nijhof f7b7786d0d
Use native datetime value in UniFi sensors (#59926) 2021-11-19 07:35:09 +01:00
Daniel Hjelseth Høyer a3d5aec778
Mill local access (#59549)
* Mill local

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Mill local

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Mill local

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Update homeassistant/components/mill/config_flow.py

Co-authored-by: Allen Porter <allen@thebends.org>

* Update homeassistant/components/mill/config_flow.py

Co-authored-by: Allen Porter <allen@thebends.org>

* Update homeassistant/components/mill/config_flow.py

Co-authored-by: Allen Porter <allen@thebends.org>

* Fix review comments

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* coveragerc

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Fix review comments

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Fix review comments

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Fix review comments

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

Co-authored-by: Allen Porter <allen@thebends.org>
2021-11-18 21:44:45 -08:00
Nathan Spencer 406cbcfe2d
Use an assumed switch state until refresh callback is complete (#59805) 2021-11-18 21:29:38 -08:00
Aaron Bach ff21453f58
Migrate appropriate Ridwell sensors to use datetime state objects (#59944)
* Migrate appropriate Ridwell sensors to use datetime state objects

* Linting

* Whoops
2021-11-18 22:24:12 -07:00
J. Nick Koston 347c4ea137
Bump zeroconf to 0.37.0 (#59932) 2021-11-18 20:23:20 -08:00
Robin Dupont 4598353315
Add apparent_power for ZHA ElectricalMeasurement (#59857)
* Add apparent_power for ZHA ElectricalMeasurement

* Add apparent_power to REPORT_CONFIG

* update device list with apparent_power attribute

* update test decorators for apparent_power

* remove comments

* Add test for apparent_power in test_sensor
2021-11-18 19:43:08 -05:00
GitHub Action 29dc9de08f [ci skip] Translation update 2021-11-19 00:14:01 +00:00
J. Nick Koston 0fb21af07f
Strip out deleted entities when configuring homekit (#59844) 2021-11-18 15:21:51 -08:00
Franck Nijhof 8fb84270d5
Fix Tuya back scaling in Climate and Humidifer entities (#59909) 2021-11-18 15:21:27 -08:00
Paul Frank a3139595bb
Remove zwave_js cover workaround (#59939) 2021-11-18 23:04:21 +01:00
Eduard van Valkenburg 958c199d80
Brunt package update with async, data update coordinator and config flow (#49714)
* implemented config_flow and dataupdatecoordinator

* implemented config flow, dataupdatecoordinator and tests.

* undid extra vscode task

* fixed pylint errors

* updates based on review

* fix mypy in reauth

* fast interval to 5 sec

* fixed test patches and others from review

* added released package

* deleted wrong line from coveragerc

* updates to config and tests

* fixed test patch
2021-11-18 23:00:42 +01:00
starkillerOG 05eb2f3e5c
Yeelight add state check to set_mode service (#59884) 2021-11-18 15:52:57 -06:00
Franck Nijhof 1ecd9c9459
Use native datetime value in OctoPrint sensors (#59927) 2021-11-18 22:42:21 +01:00
Franck Nijhof 8a0c5aa50b
Use native datetime value in RDW sensors (#59914) 2021-11-18 20:07:38 +01:00
Franck Nijhof 5593dd4006
Use native datetime value in WLED sensors (#59907) 2021-11-18 20:03:40 +01:00
Franck Nijhof fc29611935
Use native datetime value in Uptime sensors (#59916) 2021-11-18 20:03:30 +01:00