1
0
mirror of https://github.com/elisspace/core.git synced 2026-09-02 09:16:11 +00:00
Commit Graph

44814 Commits

Author SHA1 Message Date
Michael
6285c7775b Use SensorEntityDescription and set state class measurement for NUT sensors (#54269) 2021-08-11 08:56:41 -05:00
jan iversen
4ef9269790 Replace prepare_service_call with a simpler fixture in modbus (#53975)
* Convert prepare_service_call to a fixture.
2021-08-11 12:42:28 +02: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
Paulus Schoutsen
745afc8fe2 Merge pull request #54443 from home-assistant/rc 2021.8.6 2021-08-10 21:05:42 -07:00
Paulus Schoutsen
c6fc5e35fe Bumped version to 2021.8.6 2021-08-10 20:29:32 -07:00
Aaron Bach
b2b0cc9a22 Bump pyopenuv to 2.1.0 (#54436) 2021-08-10 20:29:22 -07:00
Paulus Schoutsen
ebab5c5d92 Bump hass_nabucasa to 0.46.0 (#54421) 2021-08-10 20:29:21 -07:00
Daniel Hjelseth Høyer
56d51404b7 Re-add Tibber notify service name (#54401)
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-08-10 20:29:21 -07:00
Joakim Sørensen
bb3769c84f Fix Canary sensor state (#54380) 2021-08-10 20:29:20 -07:00
Paulus Schoutsen
3effe94a27 Handle CO2Signal response value being None (#54377) 2021-08-10 20:29:19 -07: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
Dror Eiger
7e211965e4 Update the Qubino Flush Shutter fixture (#54387) 2021-08-10 10:31:55 -04: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
cf8f27bb44 Adjust version tests (#54391)
* Adjust version tests

* patch local import
2021-08-10 15:03:34 +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
Pascal Vizeli
a2a4840455 Using VCN install as action (#54383) 2021-08-10 11:02:31 +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