1
mirror of https://github.com/home-assistant/core synced 2024-08-02 23:40:32 +02:00
Commit Graph

67 Commits

Author SHA1 Message Date
GitHub Action
3c1d1bd060 [ci skip] Translation update 2022-01-26 00:15:14 +00:00
GitHub Action
2aaca346bd [ci skip] Translation update 2022-01-25 00:14:30 +00:00
Álvaro Fernández Rojas
ea96e7e512
Remove myself from CODEOWNERS (#64188) 2022-01-16 13:47:13 +01:00
Álvaro Fernández Rojas
e019d0890f
Drop aemet isoformat() from timestamps (#62793)
* aemet: drop isoformat() from timestamps

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

* aemet: fix forecast timestamp sensors

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

* aemet: move forecast timestamp sensor to lambda

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

* Revert "aemet: move forecast timestamp sensor to lambda"

This reverts commit 1f012c9adc.
2022-01-16 12:31:55 +01:00
epenet
4363852178
Add sensor setup type hints [a-b] (#63319)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 19:18:00 +01:00
epenet
7df339f436
Add weather setup type hints (#63301)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 16:27:33 +01:00
GitHub Action
cc92aa557a [ci skip] Translation update 2021-12-26 00:15:41 +00:00
epenet
fd58c1eff5
Use new SensorDeviceClass enums in aemet (#61256)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 12:18:14 -08:00
Marc Mueller
f57d42a9e8
Use platform enum (1) [A-D] (#60908)
* Use platform enum (1) [A-D]

* Fix imports

* Fix tests

* Use Platform even in tests
2021-12-03 08:51:30 -08:00
Tobias Sauerwein
a9b2036de1
Use state class enums in aemet (#60817) 2021-12-02 09:26:39 +01:00
GitHub Action
9e606abb0c [ci skip] Translation update 2021-11-23 00:13:54 +00:00
GitHub Action
72b0eb719e [ci skip] Translation update 2021-11-20 00:12:27 +00:00
GitHub Action
b82fac1a73 [ci skip] Translation update 2021-11-17 00:13:20 +00:00
GitHub Action
f0c9f443d1 [ci skip] Translation update 2021-11-15 00:12:46 +00:00
GitHub Action
fc539da42b [ci skip] Translation update 2021-11-14 00:12:48 +00:00
GitHub Action
e35b83081e [ci skip] Translation update 2021-11-08 00:12:31 +00:00
GitHub Action
332a571bb4 [ci skip] Translation update 2021-11-07 00:12:38 +00:00
J. Nick Koston
10d6247fee
Bump to aiohttp 3.8.0 (#58974) 2021-11-04 10:07:50 -05:00
GitHub Action
c9c95165e4 [ci skip] Translation update 2021-11-04 00:12:21 +00:00
Marc Mueller
3f1b4906bf
Use assignment expressions 35 (#58824) 2021-10-31 18:32:17 +01:00
Álvaro Fernández Rojas
946df49ca8
Add long-term statistics for AEMET sensors (#57844) 2021-10-21 09:03:37 -07:00
Tomasz
e9f6bc7364
Add missing return type to async_unload_entry and async_setup_entry (#57115) 2021-10-06 10:48:11 +02:00
Marc Mueller
655399eb7b
Use EntityDescription - aemet (#55744) 2021-09-06 10:12:09 +02:00
Erik Montnemery
dbc4470979
Enable basic type checking for aemet (#54925) 2021-08-20 19:10:19 +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
GitHub Action
ba93bda3ad [ci skip] Translation update 2021-08-05 00:34:46 +00:00
GitHub Action
8c5620e74b [ci skip] Translation update 2021-08-02 03:40:04 +00:00
GitHub Action
531733da7b [ci skip] Translation update 2021-07-19 00:09:50 +00:00
GitHub Action
62a2efaf27 [ci skip] Translation update 2021-07-16 00:10:34 +00:00
GitHub Action
b347226820 [ci skip] Translation update 2021-07-10 00:09:24 +00:00
Robert Hillis
4463d50711
Use entity class attributes for aemet (#52499) 2021-07-05 07:53:16 +02:00
GitHub Action
c81df50191 [ci skip] Translation update 2021-06-06 00:19:43 +00:00
tkdrob
d1c4d0de49
Use bool annotations for setup entries (#51166) 2021-05-27 17:39:06 +02:00
tkdrob
c0656878db
Normalize async_setup_entry (#51161) 2021-05-27 15:56:20 +02:00
GitHub Action
f45bc3abc7 [ci skip] Translation update 2021-05-27 00:17:03 +00:00
GitHub Action
0a49de75d9 [ci skip] Translation update 2021-05-19 00:11:31 +00:00
GitHub Action
1f80defe3a [ci skip] Translation update 2021-05-18 00:12:13 +00:00
Álvaro Fernández Rojas
4357d2dc84
Update AEMET library to latest version (#50222)
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-05-17 11:07:53 +02:00
Álvaro Fernández Rojas
9247a157d8
Add AEMET conditional station updates (#50227) 2021-05-14 13:28:48 +02:00
Franck Nijhof
d4d0b93d3b
Clean up connection classes in integrations A-C (#49888) 2021-04-30 21:01:52 -10:00
J. Nick Koston
51be2f860a
Reduce boilerplate to setup config entry platforms A-C (#49681)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-04-26 07:46:55 -10:00
HomeAssistant Azure
020d456889 [ci skip] Translation update 2021-04-21 00:03:47 +00:00
Franck Nijhof
055cdc64c0
Add support for IoT class in manifest (#46935) 2021-04-15 10:21:38 +02:00
Álvaro Fernández Rojas
e30cf88459
AEMET town timestamp should be UTC (#48916)
AEMET OpenData doesn't clarify if the hourly data timestamp is UTC or not, but
after correctly formatting the town timestamp in ISO format, it is clear that
the timestamp is provided as UTC value.
Therefore, the only values not provided as UTC are the ones related to the
specific daily and hourly forecast values.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-04-09 12:37:46 +02:00
Álvaro Fernández Rojas
2c61c0f258
Fix AEMET town timestamp format (#48647)
Datetime should be converted to ISO format.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-04-03 11:17:17 +02:00
Marc Mueller
2956eb0902
Update pylint to 2.7.3 (#48488)
* Update pylint to 2.7.3

* Add class-const-naming-style

* Remove unused-import message

* Additional cleanup
2021-03-29 18:02:56 -10:00
Franck Nijhof
bb9da22a84
Clean up superfluous integration setup - part 3 (#48484) 2021-03-29 13:23:44 -10:00
J. Nick Koston
a851bff95a
Create async_config_entry_first_refresh to reduce coordinator boilerplate (#48451) 2021-03-29 12:51:39 -10:00
Álvaro Fernández Rojas
23d7330a2f
Discard outdated data reported by AEMET stations (#48417)
* aemet: achieve 100% test coverage

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

* aemet: discard outdated station data

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

* aemet: fix AemetSensor/AemetForecastSensor inheritance

AbstractAemetSensor already inherits SensorEntity.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-03-27 22:33:24 +01:00
Erik Montnemery
a09c8eecb7
Fix some sensor classes (#48254)
* Fix some sensor classes

* Tweak

* Tweak
2021-03-23 15:56:33 +01:00