Commit graph

42026 commits

Author SHA1 Message Date
epenet
2468724378
Use SsdpServiceInfo for ssdp tests (part 2) (#60322)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-25 09:45:35 -06:00
Redah
3399c90936
Add Notifications for Android TV icon support (#60159)
* Add icon support

* Sort imports

* Sort imports correctly

* Satisfy pylint

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-11-25 16:40:26 +01:00
Franck Nijhof
6b9c2d8295
Add shorthand attribute support to Camera platform (#59837) 2021-11-25 16:03:53 +01:00
Hypnos
57fd632cd9
Add missing MQTT lock.open (#60022)
* Add missing MQTT lock.open

from:
https://community.home-assistant.io/t/mqtt-lock-open/232823/13
based on https://github.com/home-assistant/core/pull/48008

* Update homeassistant/components/mqtt/lock.py

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

* Update homeassistant/components/mqtt/lock.py

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

* Update homeassistant/components/mqtt/lock.py

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

* removed `STATE_OPEN` from tests

* Apply suggestions from code review

* Format code

* Update lock.py

* Update test_lock.py

* Update test_lock.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-11-25 15:54:08 +01:00
Till Skrodzki
635d875b1d
Only accept valid hvac actions sent via mqtt (#59919)
* Only accept valid hvac actions sent via mqtt

* Only accept valid hvac actions sent via mqtt

* Fix existing action test and remove old one

* Remote None as valid hvac action being accepted

* Change loglevel of wrong hvac action received
2021-11-25 15:53:34 +01:00
Thomas Dietrich
4c0d90ed41
Remove unknown attribute instead of marking STATE_UNKNOWN (#60325) 2021-11-25 15:13:55 +01:00
Franck Nijhof
8b001fd54d
Adjust/Fix CI coverage reporting (#60329) 2021-11-25 15:05:20 +01:00
Matthias Lohr
2f0ec0d7e5
Add tolo select platform (#60326) 2021-11-25 14:41:57 +01:00
epenet
9eed18f121
Use SsdpServiceInfo for ssdp tests (part 1) (#60320)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-25 14:35:19 +01:00
epenet
18a82e43a4
CI: fix linters on partial runs with multiple components (#60331)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-25 14:13:03 +01:00
J. Nick Koston
213be1f15e
Update flux_led to use async_set_brightness in the lib (#60315) 2021-11-25 12:41:32 +01:00
refinedcranberry
a78f0eae39
Add "nextchange" sensors to AVM FRITZ!Smarthome devices (#58274) 2021-11-25 12:34:04 +01:00
J. Nick Koston
995f01cb68
Fix exception in august if bridge is missing (#60316) 2021-11-25 12:30:57 +01:00
Matthias Lohr
3372288c88
Add tolo sensor platform (#60308) 2021-11-25 12:29:09 +01:00
Pascal Vizeli
f2a44553d8
Fix image build issues (#60319) 2021-11-25 12:24:30 +01:00
Thomas Dietrich
fd8b43320d
Replace returned STATE_UNKNOWN by None (#60324) 2021-11-25 12:09:30 +01:00
epenet
62bf42e421
Introduce SsdpServiceInfo for ssdp discovery (#60284)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-24 19:35:15 -06:00
J. Nick Koston
5b199bcc6d
Use random effect from flux_led library (#60312) 2021-11-25 02:34:19 +01:00
epenet
75057949d1
Adjust async_step_discovery methods for BaseServiceInfo (#60285)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-24 19:30:02 -06:00
avee87
0920e74aa2
Use DeviceEntryType in Metoffice (#60252) 2021-11-25 01:24:27 +01:00
GitHub Action
d3c020325b [ci skip] Translation update 2021-11-25 00:13:33 +00:00
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
Simone Chemelli
15f62a7237
More tests optimizations for SamsungTV (#60297)
* More tests optimizations

* Apply review comments
2021-11-24 22:54:49 +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
c5d480f0c9
CI: Fix test groups when running full CI suite (#60300) 2021-11-24 12:03:33 -06:00
Franck Nijhof
29f1abd2d5
CI: Fix full suite on core file changes (#60299) 2021-11-24 18:43:58 +01:00
Franck Nijhof
fb40a5c0d1
Partial CI workflows: take 2 (#60294) 2021-11-24 18:14:41 +01:00
Erik Montnemery
7b57033265
Correct today_at template function / filter (#60291)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-11-24 15:51:43 +01:00
Jan Bouwhuis
d33457b7bc
Add bytes support for bitwise template operations (#60211)
* Add bytes support for bitwise template operations

* spelling

* Update bitwise tests

* remove try block for bytes conversion

* do not accept empty `bytes` object
2021-11-24 15:15:27 +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
Franck Nijhof
3aac757e7c
CI: Combine smaller linters into a single job (#60279)
* CI: Combine smaller linters into a single job

* Remove unrelated changhe

* Remove stale exit
2021-11-24 11:56:50 +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