Commit Graph

29908 Commits (d11c58dac83c375a4907ebc7f7c0e8be44a83fb7)

Author SHA1 Message Date
Franck Nijhof f77187d28a
Deprecate Wink integration (#54496) 2021-08-11 18:16:28 -04:00
Marc Mueller b411372872
Use EntityDescription - blink (#54360) 2021-08-11 13:41:51 -07:00
Niels Mündler 539ed56000
Refactor Fronius sensor device class and long term statistics (#54185) 2021-08-11 13:40:04 -07:00
Erik Montnemery 2720ba2753
Move temperature conversions to sensor base class (4/8) (#54472)
* Move temperature conversions to entity base class (4/8)

* Fix litterrobot sensor

* Fix tests
2021-08-11 21:17:47 +02:00
Erik Montnemery ae507aeed1
Move temperature conversions to sensor base class (8/8) (#54483)
* Move temperature conversions to entity base class (8/8)

* Fix wallbox sensor

* Fix tests
2021-08-11 21:17:16 +02:00
Bram Kragten e23750b2a4
Add device class `gas` and enable statistics for it (#54110)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-08-11 09:58:19 -07:00
Erik Montnemery 94a264afaf
Move temperature conversions to entity base class (7/8) (#54482) 2021-08-11 18:57:50 +02:00
Erik Montnemery 41f3c2766c
Move temperature conversions to entity base class (2/8) (#54468) 2021-08-11 18:57:12 +02:00
Bram Kragten f020d65416
Add battery support to energy (#54432) 2021-08-11 09:49:56 -07:00
Aaron Bach 98a4e6a7e8
Fix possible unhandled IQVIA exception with allergy outlook data (#54477)
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
2021-08-11 09:12:49 -07:00
Marc Mueller 6f70302901
Fix arlo platform schema (#54470) 2021-08-11 08:57:56 -07:00
J. Nick Koston 1e14b3a0ac
Ensure camera handles non-jpeg image sources correctly (#54474) 2021-08-11 08:12:46 -07:00
Franck Nijhof 13c34d646f
Remove empty currency from discovery info (#54478) 2021-08-11 08:09:16 -07:00
Phil Cole cb26f334c3
Use pycarwings2 2.11 (#54424) 2021-08-11 16:34:36 +02:00
Robert Hillis b1fc05413a
Bump notifications-android-tv to 0.1.3 (#54462)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-11 16:13:38 +02:00
Michael 6285c7775b
Use SensorEntityDescription and set state class measurement for NUT sensors (#54269) 2021-08-11 08:56:41 -05:00
Felix 4d93184197
Strip attributes whitespace in universal media_player (#54451)
When using whitespace in attributes the lookup of the state attribute fails because an entity with whitespace in its name cannot be found.

Works:
entity_id|state_attribute

Does not work:
entity_id | state_attribute

Fixes #53804
2021-08-11 12:17:12 +02:00
Ville Skyttä bc417162cf
Fix Huawei LTE entity state updating (#54447)
Since 91a2b96, we no longer key this by the router URL, but the relevant
config entry unique id.

Closes https://github.com/home-assistant/core/issues/54243
2021-08-11 11:50:17 +02:00
Joakim Sørensen 2f5c3c08ef
Use monitor name for uptimerobot device registry (#54456) 2021-08-11 11:27:41 +02:00
jan iversen 2d669a4613
Remove legacy code. (#54452) 2021-08-11 11:07:04 +02:00
Erik Montnemery 4e07ab1b32
Move temperature conversions to sensor base class (1/8) (#48261)
* Move temperature conversions to entity base class (1/8)

* Update integrations a-c

* Leave old temperature conversion until all integrations are migrated

* tweak

* Use contextlib.suppress

* Remove the MeasurableUnitEntity mixin

* Address comments, add tests

* Fix f-string

* Drop deprecation warning from base entity class

* Update with _attr-shorthand

* Fix rebase mistakes

* Fix additional rebase mistakes

* Only report temperature conversion once

* Fix additional rebase mistakes

* Format homeassistant/components/bbox/sensor.py

* Fix check for overidden _attr_state

* Remove test workarounds from implementation

* Remove useless None-check

* Tweaks

* Migrate new sensors a-c

* Update climacell

* Push deprecation of temperature conversion forward

* Override __repr__ in SensorEntity

* Include native_value in SensorEntity attributes

* Pylint

* Black

* Black

* Fix rebase mistakes

* black

* Fix rebase mistakes

* Revert changes in august/sensor.py

* Revert handling of unit converted restored state

* Apply code review suggestion

* Fix arlo test
2021-08-11 10:45:05 +02:00
Aaron Bach 930c1dbe9b
Bump aioambient to 1.2.6 (#54442) 2021-08-11 09:58:53 +02:00
Brett 480fd53b4b
Advantage Air code cleanup (#54449) 2021-08-11 09:49:31 +02:00
jan iversen adcbd8b115
Activate mypy for Trådfri (#54416)
* Activate mypy.
2021-08-11 08:31:52 +02:00
Aaron Bach 10551743d6
Bump pyopenuv to 2.1.0 (#54436) 2021-08-10 20:28:03 -07:00
J. Nick Koston 4d40d95848
Add support for width and height to ffmpeg based camera snapshots (#53837) 2021-08-10 20:31:11 -05:00
J. Nick Koston d0b11568cc
Ensure HomeKit passes min/max mireds as ints (#54372) 2021-08-10 20:28:01 -05:00
J. Nick Koston e99576c094
Pass width and height when requesting camera snapshot (#53835) 2021-08-10 19:33:06 -05:00
GitHub Action 390023a576 [ci skip] Translation update 2021-08-11 00:18:57 +00:00
J. Nick Koston 4ae6435a64
Avoid increasing yeelight rate limit when the state is already set (#54410) 2021-08-10 15:17:49 -07:00
J. Nick Koston 4da451fcf7
Improve HomeKit Color with Color Temp implementation (#54371) 2021-08-10 15:16:51 -07:00
J. Nick Koston 4bde4504ec
Add api to device_automation to return all matching devices (#53361) 2021-08-10 14:21:34 -05:00
Marc Mueller ac29571db3
Refactor pi_hole icon usage (#54420) 2021-08-10 21:14:31 +02:00
jan iversen 08a30ed510
Add myself as codeowner to tradfri (IKEA stuff) (#54415) 2021-08-10 21:14:09 +02:00
Paulus Schoutsen ed0fd00746
Bump hass_nabucasa to 0.46.0 (#54421) 2021-08-10 11:30:02 -07:00
Joakim Sørensen 2265fd1f81
Mark Uptime Robot as a platinum quality integration (#54408) 2021-08-10 20:26:48 +02:00
Daniel Hjelseth Høyer ba6bdff04e
Re-add Tibber notify service name (#54401)
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-08-10 20:14:10 +02:00
jjlawren 1eeb12ba1c
Support unloading/reloading Sonos (#54418) 2021-08-10 10:57:39 -07:00
Marc Mueller c0a7fca628
Fix pi_hole sensor icon (#54403) 2021-08-10 18:57:25 +02:00
Marc Mueller f5901265dc
Use EntityDescription - ios (#54359)
* Use EntityDescription - ios

* Make attribute static

* Update homeassistant/components/ios/sensor.py

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

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-08-10 16:47:52 +02:00
Joakim Sørensen d1ea38e8f0
Add 100% test coverage for Uptime Robot (#54314)
* Add 100% test coverage for Uptime Robot

* Update tests/components/uptimerobot/test_binary_sensor.py

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

* Add more typehints

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-10 16:29:51 +02:00
Daniel Hjelseth Høyer f03b160c46
Mill cleanup (#54396) 2021-08-10 16:28:39 +02:00
Joakim Sørensen 8ea5a0dbc1
Remove useless check in launch_library (#54393) 2021-08-10 15:03:12 +02:00
jan iversen 1d40a6e407
Activate mypy from amcrest and make the needed changes (#54392) 2021-08-10 14:57:57 +02:00
Jan Bouwhuis 5de1adacf7
Xiaomi miio add coordinator to fan platform (#54366)
* init coordinator for airpurifiers and airfresh

* Update fan entities with coordinator

* cache mode and fan_level at user update

* pylint define attributes in _init

* Update homeassistant/components/xiaomi_miio/fan.py

Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com>

* Update homeassistant/components/xiaomi_miio/fan.py

Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com>

* Update homeassistant/components/xiaomi_miio/fan.py

Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com>

* cleanup code

* Set hass.data[DATA_KEY] to enable

* rename to filtered_entities in service handler

* Update homeassistant/components/xiaomi_miio/fan.py

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

* flake

Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com>
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
2021-08-10 14:55:11 +02:00
Jesse Hills a7c08fff81
Apply suggested changes to tidy juicenet sensor code (#54390) 2021-08-10 14:06:27 +02:00
Joakim Sørensen 39d7bb4f1a
Use `_attr_*` for Launch Library (#54388) 2021-08-10 13:11:12 +02:00
Milan Meulemans 9c29d9f8eb
Activate mypy for Proxmox VE (#53955) 2021-08-10 12:36:20 +02:00
jan iversen e5f884efd1
Activate mypy for google_maps (#53725) 2021-08-10 11:48:16 +02:00
Milan Meulemans 814411dc1d
Activate mypy for Solar-Log (#53952) 2021-08-10 10:56:34 +02:00
Milan Meulemans 355a067d84
Activate mypy for Smart Meter Texas (#53954) 2021-08-10 10:55:38 +02:00
Milan Meulemans d8c679809f
Activate mypy for SiteSage Emonitor (#54040) 2021-08-10 10:47:57 +02:00
Milan Meulemans 7e2c6ae332
Activate mypy for Pilight (#53956) 2021-08-10 10:47:17 +02:00
Milan Meulemans 020759d01d
Activate mypy for Alexa (#54042) 2021-08-10 10:46:33 +02:00
Milan Meulemans fc1babfc92
Activate mypy for Filter (#54044) 2021-08-10 10:45:56 +02:00
jan iversen 54538bb72b
Bump pymodbus version to 2.5.3rc1 (#54318) 2021-08-10 10:16:38 +02:00
Joakim Sørensen 8cb3a485e0
Fix Canary sensor state (#54380) 2021-08-10 09:19:28 +02:00
Paulus Schoutsen 934662cd54
Handle CO2Signal response value being None (#54377) 2021-08-10 08:17:47 +02:00
Franck Nijhof 3202d4882a
Upgrade debugpy to 1.4.1 (#54369) 2021-08-09 20:56:19 -07:00
Brett b76899f546
Fix race condition in Advantage Air (#53439) 2021-08-09 20:21:24 -07:00
Raman Gupta f60fbf7197
Update Climacell rate limit (#54373) 2021-08-09 20:16:18 -07:00
Marc Mueller f92f0bb87b
Use EntityDescription - juicenet (#54362)
* Use EntityDescription - juicenet

* Move part of icon to EntityDescription

* Remove default values

* Remove name override to use the _attr_name

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2021-08-10 14:25:22 +12:00
ollo69 1948d11d84
AsusWRT remove default EntityDescription property (#54367) 2021-08-10 02:10:53 +02:00
Paulus Schoutsen 38a7bdbcf3
Do not process forwarded for headers for cloud requests (#54364) 2021-08-10 01:45:56 +02:00
Paulus Schoutsen a40deac714
Revert "Use entity class attributes for Bluesound (#53033)" (#54365) 2021-08-10 01:45:39 +02:00
Joakim Sørensen d80da944a3
Version sensor entity cleanup (#53915)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-08-10 01:24:18 +02:00
J. Nick Koston 25f3cdde50
Add powerwall import and export sensors (#54018)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2021-08-09 16:03:22 -07:00
Richard T. Schaefer 3184f0697f
Add Save Persistent States service (#53881) 2021-08-10 00:38:56 +02:00
Dermot Duffy d4a3d0462d
Minor motionEye readability improvement (#54251) 2021-08-10 00:11:21 +02:00
Maciej Bieniek 4459d8674a
Add `binary_sensor` platform for Xiaomi Miio integration (#54096) 2021-08-09 23:56:33 +02:00
Marc Mueller aeb7a6c090
Use EntityDescription - bitcoin (#54320)
* Use EntityDescription - bitcoin

* Remove default values
2021-08-09 23:54:07 +02:00
Marc Mueller b42ac8b48f
Use EntityDescription - growatt_server (#54316) 2021-08-09 23:53:39 +02:00
Aaron Bach 1cd575df53
Cast SimpliSafe version number as a string in device info (#54356) 2021-08-09 23:50:39 +02:00
dailow f1c244e914
Fix aqualogic state attribute update (#54354) 2021-08-09 23:50:09 +02:00
J. Nick Koston dcf4eb5e0d
Remove HomeKit event guards (#54343) 2021-08-09 23:49:51 +02:00
Guido Schmitz c07b1423ee
Remove useless attribute in devolo Home Control (#54284) 2021-08-09 23:45:15 +02:00
Jan Bouwhuis d55c764048
Fix Xiaomi-miio turn fan on with speed, percentage or preset (#54353) 2021-08-09 14:43:59 -07:00
Marc Mueller 4133cc05eb
Use EntityDescription - abode (#54321) 2021-08-09 23:40:57 +02:00
Marc Mueller d79fc2c506
Use EntityDescription - pi_hole (#54319) 2021-08-09 23:38:58 +02:00
Bram Kragten 38cb0553f3
Update frontend to 20210809.0 (#54350) 2021-08-09 22:27:09 +02:00
J. Nick Koston 74a30af79b
Always set interfaces explicitly when IPv6 is present (#54268) 2021-08-09 21:13:55 +02:00
rikroe 7050b53264
Fix login to BMW services for rest_of_world and north_america (#54261)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2021-08-09 21:11:53 +02:00
J. Nick Koston 8eff0e9312
Ensure hunterdouglas_powerview model type is a string (#54299) 2021-08-09 21:03:55 +02:00
J. Nick Koston f37b164d60
Bump zeroconf to 0.34.3 (#54294) 2021-08-09 20:58:27 +02:00
Jan Bouwhuis 0149095824
Fix xiaomi air fresh fan preset modes (#54342) 2021-08-09 20:57:36 +02:00
Robert Hillis a54ee7b366
Use correct state attribute for alarmdecoder binary sensor (#54286)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-09 20:55:58 +02:00
Marc Mueller 511af66b22
Fix ondilo_ico name attribute (#54290) 2021-08-09 20:53:30 +02:00
Reuben Gow 74d41ac5e5
Force an attempted subscribe on speaker reboot (#54100)
* Force an attempted subscribe on speaker reboot

* Recreate subscriptions and timers explicitly on speaker reboot

* only create poll timer if there is not one already

Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>

* Black

Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
2021-08-09 20:47:38 +02:00
starkillerOG a23da30c29
Yeelight local push updates (#51160)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-08-09 13:33:34 -05:00
Maciej Bieniek acf55f2f3a
Add light transition for Shelly integration (#54327)
* Add support for light transition

* Limit transition to 5 seconds

* Update MODELS_SUPPORTING_LIGHT_TRANSITION list
2021-08-09 20:55:14 +03:00
Diogo Gomes b88f0adbe9
Restores unit_of_measurement (#54335) 2021-08-09 19:48:01 +02:00
Chris 188919f079
Clean up zwave_js RGB code (#54336) 2021-08-09 18:45:12 +02:00
Franck Nijhof 1c7891fbee
Remove deprecated YAML configuration from Growatt (#54325) 2021-08-09 14:54:42 +02:00
Raman Gupta c79ee53ab1
Use dict for zwave_js siren.available_tones (#54305)
* Use dict for zwave_js siren.available_tones

* update siren.turn_on service description
2021-08-09 13:29:17 +02:00
Chris 3742333a89
Remove zwave_js transition on individual color channels (#54303) 2021-08-09 13:21:41 +02:00
jan iversen 9b7b787fe4
Remove icon where device_class is defined. (#54323) 2021-08-09 13:13:11 +02:00
cpw 608f406a2c
Update services.yaml for matrix service to fix Data field being replaced by [object Object] in UI (#54296) 2021-08-09 12:38:05 +02:00
jan iversen 6ea50823c1
Use SensorEntityDescription for arlo (#54223)
* Use SensorEntityDescription.
2021-08-09 12:16:35 +02:00
ZeGuigui d97f93933f
Fix atom integration for long term statistics (#54285)
* Fix atom integration for long term statistics

* Remove commented code

* Fix last_reset syntax

* last_reset not an extra attribute

* last_reset as utc

* black formatting

* isort fix
2021-08-09 11:38:16 +02:00
Martin Hjelmare a1abd4f0d6
Fix external internal url core check (#54310) 2021-08-09 10:52:14 +02:00