Commit Graph

41994 Commits (2439f6b5625a7d52aeddecaa8d7fa9d40bae2775)

Author SHA1 Message Date
Fabian Seitz 2439f6b562
Bump openwrt-luci-rpc from 1.1.8 to 1.1.11 () 2021-11-24 20:12:39 +01:00
Erik Montnemery 7c3edf24f2
Allow MQTT selects to have a single or no options () 2021-11-24 20:06:12 +01:00
J. Nick Koston fd116fc408
Refactor zeroconf matching to be more DRY () 2021-11-24 19:57:13 +01:00
J. Nick Koston 86cd46a0dd
Add support for adjusting effect brightness in flux_led () 2021-11-24 19:55:00 +01:00
Franck Nijhof 39f5eba97d
Use native datetime value in OpenWeatherMap sensors () 2021-11-24 19:51:25 +01:00
Franck Nijhof c5d480f0c9
CI: Fix test groups when running full CI suite () 2021-11-24 12:03:33 -06:00
Franck Nijhof 29f1abd2d5
CI: Fix full suite on core file changes () 2021-11-24 18:43:58 +01:00
Franck Nijhof fb40a5c0d1
Partial CI workflows: take 2 () 2021-11-24 18:14:41 +01:00
Erik Montnemery 7b57033265
Correct today_at template function / filter ()
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 ()
* 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 () 2021-11-24 15:00:54 +01:00
epenet 5a8cbb8cab
Use UsbServiceInfo in zwave-js ()
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 ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-24 07:50:45 -06:00
epenet d990fe1957
Update ssdp matching_domain constant ()
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 ()
* 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 ()
* 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 ()
* 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 .

* 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 ()
* 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
Simone Chemelli 8e6a3b2799
Fix init slow tests for SamsungTV () 2021-11-24 11:25:25 +01:00
Matthias Alphart 1a5f2c9c32
Disable less popular Fronius entities by default () 2021-11-24 11:17:38 +01:00
Erik Montnemery 07c90575ac
Add comments to entity category constants () 2021-11-24 10:46:53 +01:00
Franck Nijhof dee4ce921d
Correct entity category on UPS type in NUT () 2021-11-24 10:46:31 +01:00
epenet 9027ee7828
Revert "Add type hints to SSDP ()" () 2021-11-24 10:14:48 +01:00
Jan Bouwhuis d41d223033
Add UNIX timestamp detection to `as_datetime` template filter () 2021-11-24 09:51:56 +01:00
Jan Bouwhuis fa0d3a6c48
Change output template filters `timestamp_local` and `timestamp_utc` to isoformat () 2021-11-24 09:49:03 +01:00
Pascal Vizeli ed9d40378e
Update base image 2021.11.0 () 2021-11-24 09:48:34 +01:00
epenet 4ffb0b8380
Use UsbServiceInfo in modem_callerid ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-24 09:40:52 +01:00
Erik Montnemery c0d2a66609
Add stable ID to entity registry entries ()
* Add UUID to entity registry entries

* Fix test
2021-11-24 09:01:35 +01:00
Felipe Martins Diel 774e1b0022
Decouple BroadlinkDevice.available property ()
* 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 () 2021-11-24 03:16:09 +01:00
Simone Chemelli e1de6612be
Fix socket usage in Aprs test () 2021-11-24 03:02:03 +01:00
cvroque 4555f52e50
Add configuration entities to Tuya Vacuum (sd) () 2021-11-24 02:15:49 +01:00
Franck Nijhof 4c3163196e
Temporary disable partial runs in CI () 2021-11-24 02:13:38 +01:00
Matthias Alphart 3dac661480
Rewrite Fronius integration ()
* Add unique_id and use DataUpdateCoordinator in Fronius ()

* 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 ()

* Cleanup Fronius config_flow and tests ()

* Add devices to Fronius integration ()

* New entity names for Fronius entities ()

* Adaptive update interval for Fronius coordinators ()

Co-authored-by: Brett Adams <Bre77@users.noreply.github.com>
2021-11-24 02:04:36 +01:00
Franck Nijhof 314f593066
Add partial codecov flag to CI to trigger carryforward coverage () 2021-11-24 01:34:03 +01:00
Simone Chemelli 7e9ff26b4c
Add slow tests list to VScode task code coverage () 2021-11-24 01:13:44 +01:00
Franck Nijhof ec44a55b2c
Make partial test suite not waiting for linters () 2021-11-24 01:09:55 +01:00
Franck Nijhof 6b59e305cb
Run partial test suite in CI if core untouched ()
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-11-23 14:57:45 -08:00
Oleksandr Kapshuk d677baba36
Add hjjcy device category to Tuya integration () 2021-11-23 23:42:21 +01:00
Kamil Doległo a7c44d89e1
Fix Tuya integration for climate devices () 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 () 2021-11-23 23:32:03 +01:00
Maciej Bieniek ac3dc0b090
Use native datetime value in NAM uptime sensor () 2021-11-23 23:25:48 +01:00
Michael Chisholm 9fa6daf47a
dlna_dmr: Ignore philips tv () 2021-11-23 23:22:34 +01:00
Maciej Bieniek 4649bc3c11
Add LED brightness for Xiaomi Miio ZA5 fan () 2021-11-23 23:21:07 +01:00
Erik Montnemery 615198a58f
Use pychromecast CastInfo type in cast integration () 2021-11-23 23:17:58 +01:00
Michael 027577805e
Use attribute shortcuts in Samsung TV integration ()
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" ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-11-23 23:05:27 +01:00
epenet 44611d7e26
Use dataclass for ZeroconfServiceInfo ()
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 () 2021-11-23 22:55:32 +01:00
J. Nick Koston af51aeb6dc
Show how user input is malformed in the UI on error () 2021-11-23 22:50:54 +01:00