1
mirror of https://github.com/home-assistant/core synced 2024-09-09 12:51:22 +02:00
Commit Graph

38410 Commits

Author SHA1 Message Date
Erik Montnemery
09fbc38baa
Remove last_reset attribute from keba energy sensors (#54828) 2021-08-18 16:45:30 +02:00
Erik Montnemery
6eba04c454
Remove last_reset attribute from wemo energy sensors (#54821) 2021-08-18 16:45:16 +02:00
Erik Montnemery
4892f6b094
Remove last_reset attribute and set state class to total_increasing for sense energy sensors (#54825) 2021-08-18 16:31:10 +02:00
Ville Skyttä
9947795068
Treat Huawei LTE error code 100006 as unsupported functionality (#54253)
Internet says 100006 could mean "parameter error", B2368-F20 is
reported to respond with that to lan/HostInfo requests.

While at it, handle the special case error codes and the "real" not
supported exception in the same block.

Closes https://github.com/home-assistant/core/issues/53280
2021-08-18 17:26:54 +03:00
Erik Montnemery
28e421dc53
Remove last_reset attribute and set state class to total_increasing for spider energy sensors (#54822) 2021-08-18 15:54:22 +02:00
Daniel Hjelseth Høyer
27849426fe
Remove last_reset attribute and set state class to total_increasing for Integration sensors (#54815) 2021-08-18 15:54:11 +02:00
SmaginPV
07c0fc9eba
Remove deprecated Xiaomi Miio fan speeds (#54182) 2021-08-18 15:53:17 +02:00
jan iversen
20b7125620
Activate mypy for Panasonic_viera (#54547) 2021-08-18 15:34:50 +02:00
Erik Montnemery
5536e24dec
Remove last_reset attribute and set state class to total_increasing for zwave_js energy sensors (#54818) 2021-08-18 15:11:10 +02:00
Erik Montnemery
aef8ec968b
Remove last_reset attribute from kostal_plenticore energy sensors (#54817) 2021-08-18 14:59:22 +02:00
Erik Montnemery
0329d0f246
Remove last_reset attribute and set state class to total_increasing for tibber energy sensors (#54799)
* Remove last_reset attribute from tibber energy sensors

* Remove reset_type, fix merge

* Update homeassistant/components/tibber/sensor.py

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

Co-authored-by: Daniel Hjelseth Høyer <mail@dahoiv.net>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-08-18 14:18:51 +02:00
Erik Montnemery
60f8e24bde
Remove last_reset attribute from sma energy sensors (#54814) 2021-08-18 13:58:08 +02:00
Erik Montnemery
0b7b4152f1
Remove last_reset attribute from devolo energy sensors (#54803) 2021-08-18 13:55:21 +02:00
Erik Montnemery
d9bfb8fc58
Remove last_reset attribute and set state class to total_increasing for rainforest energy sensors (#54810) 2021-08-18 13:44:08 +02:00
Erik Montnemery
3c5ba1fcc3
Remove last_reset attribute and set state class to total_increasing for PVOutput energy sensors (#54809) 2021-08-18 13:41:57 +02:00
Erik Montnemery
7812b50572
Remove last_reset attribute and set state class to total_increasing for powerwall energy sensors (#54808) 2021-08-18 13:37:43 +02:00
Erik Montnemery
3e235f6e70
Remove last_reset attribute and set state class to total_increasing for Ovo cost and energy sensors (#54807) 2021-08-18 13:36:35 +02:00
Ville Skyttä
939fde0a50
ConfigType and async_setup/setup type hint improvements (#54739) 2021-08-18 13:22:05 +02:00
Erik Montnemery
dcb2a211e5
Remove last_reset attribute and set state class to total_increasing for Shelly energy sensors (#54800) 2021-08-18 13:13:35 +02:00
Erik Montnemery
1280a38e0f
Remove last_reset attribute from fritz sensors (#54806) 2021-08-18 13:12:37 +02:00
jan iversen
bafbbc6563
Adjust modbus constants names (#54792)
* Follow up.
2021-08-18 12:56:54 +02:00
epenet
16cb50bddf
Ensure device entry in Renault integration (#54797)
* Ensure device registry is set even when there are no entities

* Fix isort

* Use async_get for accessing registry
2021-08-18 12:44:35 +02:00
Joakim Sørensen
bf494b5697
Remove distro from updater requirements (#54804) 2021-08-18 12:31:43 +02:00
Erik Montnemery
d1057a7004
Remove last_reset and update state class for Atome energy (#54801) 2021-08-18 12:17:25 +02:00
Erik Montnemery
cbff6a603d
Remove unused last_reset from Toon (#54798) 2021-08-18 12:15:01 +02:00
J. Nick Koston
62015f5495
Bump async-upnp-client to 0.20.0, adapt to breaking changes (#54782) 2021-08-18 12:13:59 +02:00
Maciej Bieniek
c937a235e1
Add select platform for Xiaomi Miio fans (#54702)
* Add select platform for Xiaomi Miio purifiers

* Add missing condition for AirFresh

* Suggested change

* Remove fan_set_led_brightness from services.yaml

* Remove zhimi.airpurifier.v3
2021-08-18 11:24:15 +02:00
Daniel Hjelseth Høyer
102af02d8a
Tibber data coordinator (#53619)
* Tibber data coordinator

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

* Fix comments

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

* Fix comments

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

* Fix comments

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

* Remove whitespace

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-18 11:21:39 +02:00
Franck Nijhof
73d03bdf1d
Add Gas device class to DSMR Reader (#54748) 2021-08-18 10:14:03 +02:00
Erik Montnemery
e1926caeb9
Remove STATE_CLASS_TOTAL and last_reset from sensor (#54755)
* Remove STATE_CLASS_TOTAL

* Update mill sensor

* Update tests

* Kill last_reset

* Return ATTR_LAST_RESET to utility_meter

* Update energy cost sensor

* Restore last_reset for backwards compatibility

* Re-add and update deprecation warning

* Update tests

* Fix utility_meter

* Update EnergyCostSensor

* Tweak

* Fix rebase mistake

* Fix test
2021-08-18 10:03:27 +02:00
dependabot[bot]
85d9890447
Bump dessant/lock-threads from 2.1.1 to 2.1.2 (#54791)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-18 08:59:13 +02:00
Christopher Kochan
c65f769130
Update sense_energy to version 0.9.2 (#54787) 2021-08-18 08:29:02 +02:00
J. Nick Koston
87496ae75c
Fix HomeKit cover creation with tilt position, open/close, no set position (#54727) 2021-08-17 22:41:22 -05:00
J. Nick Koston
d7c1e7c7dc
Adjust yeelight homekit model (#54783) 2021-08-17 22:41:01 -05:00
Maciej Bieniek
10058ea3f0
Use new device classes in GIOS integration (#54743)
* Use new device classes

* Clean up
2021-08-17 22:35:05 -05:00
Maciej Bieniek
bd550c4559
Use AQI, PM1, PM25, PM10 device classes in Airly (#54742) 2021-08-18 02:40:06 +02:00
GitHub Action
0100ffcb8c [ci skip] Translation update 2021-08-18 00:13:44 +00:00
Franck Nijhof
b981e69f95
Update SolarEdge to use new state classes (#54731) 2021-08-18 02:00:10 +02:00
Teemu R
3bc45eacfc
Fix tplink doing I/O in event loop and optimize (#54570)
* Optimize tplink i/o

* Cache has_emeter reduceing the number of i/o requests on hs300 by 5
* Use the state from the sysinfo dict for non-strips reducing required requests by one

* Remove I/O from __init__, read has_emeter from sysinfo

* Cleanup __init__ to avoid I/O
* Re-use the sysinfo response for has_emeter
* Use async_add_executor_job() to execute the synchronous I/O ops.

* use the device alias instead of host for coordinator, use executor for unavailable_devices

* Remove unnecessary self.hass assignment

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

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-18 01:29:40 +02:00
ehendrix23
67e9035e4e
Improve myq error handling for opening/closing cover (#54724) 2021-08-17 17:56:33 -05:00
Daniel Hjelseth Høyer
6da83b90f7
Rfxtrx,STATE_CLASS_TOTAL_INCREASING (#54776)
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-08-18 00:46:48 +02:00
Erik Montnemery
3a78f1fce6
Force STATE_CLASS_TOTAL_INCREASING to reset to 0 (#54751)
* Force STATE_CLASS_TOTAL_INCREASING to reset to 0

* Tweak

* Correct detection of new cycle

* Fix typing
2021-08-17 23:05:31 +02:00
gjong
8eec949835
Fix connectivity issue in the Youless integration (#54764) 2021-08-17 22:45:14 +02:00
Robert Hillis
4ef04898e9
Fix goalzero sensor not using SensorEntity class (#54773) 2021-08-17 22:38:20 +02:00
Daniel Hjelseth Høyer
909af30c7c
Tractive, update library (#54775)
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-08-17 22:04:05 +02:00
jan iversen
71b0f6d095
set common test entity name. (#54697) 2021-08-17 20:43:27 +02:00
ehendrix23
8bf79d61ee
Add upnp binary sensor for connectivity status (#54489)
* New binary sensor for connectivity

* Add binary_sensor

* New binary sensor for connectivity

* Add binary_sensor

* Handle values returned as None

* Small text update for Uptime

* Update homeassistant/components/upnp/binary_sensor.py

Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>

* Update homeassistant/components/upnp/binary_sensor.py

Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>

* Update homeassistant/components/upnp/binary_sensor.py

Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>

* Update homeassistant/components/upnp/binary_sensor.py

Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>

* Update homeassistant/components/upnp/binary_sensor.py

Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>

* Update homeassistant/components/upnp/binary_sensor.py

Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>

* Update homeassistant/components/upnp/binary_sensor.py

Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>

* Update homeassistant/components/upnp/binary_sensor.py

Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>

* Updates based on review

* Update homeassistant/components/upnp/binary_sensor.py

Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>

* Further updates based on review

* Set device_class as a class atribute

* Create 1 combined data coordinator
and UpnpEntity class

* Updates on coordinator

* Update comment

* Fix in async_step_init for coordinator

* Add async_get_status to mocked device
and set times polled for each call seperately

* Updated to get device through coordinator
Check polling for each status call seperately

* Use collections.abc instead of Typing for Mapping

* Remove adding device to hass.data as coordinator
is now saved

* Removed setting _coordinator

* Added myself as codeowner

* Update type in __init__

* Removed attributes from binary sensor

* Fix async_unload_entry

* Add expected return value to is_on

Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
2021-08-17 20:23:41 +02:00
Franck Nijhof
5b75c8254b
Use path helper method for principal file in google_pubsub (#54744)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-17 19:49:38 +02:00
Michael
15feb430fc
Use DEVICE_CLASS_UPDATE in Synology DSM (#54769) 2021-08-17 19:15:02 +02:00
Raman Gupta
cff6883b5c
Add zwave_js Protection CC select entities (#54717)
* Add Protection CC select entities

comment

* Disable entity by default

* use class attribute

* Enable protection entity by default

* add guard for none
2021-08-17 12:22:27 -04:00