Commit Graph

15 Commits (0f83db82d990b2bd4b477d8287c5e3770839cab5)

Author SHA1 Message Date
Franck Nijhof 22eba6ce1b
Remove attribution from extra state attributes (#76172) 2022-08-04 08:13:20 +02:00
Erik Montnemery 47048e4df4
Migrate aemet weather to native_* (#74494) 2022-07-06 16:22:45 +02:00
Erik Montnemery a7158fee67
Revert "Migrate aemet to native_*" (#74471) 2022-07-05 22:24:08 +02:00
Erik Montnemery 0768ed453d
Migrate aemet to native_* (#74037) 2022-07-04 14:06:32 +02:00
Marc Mueller 1072aff017
Update coordinator typing (1) [a-c] (#68442) 2022-03-21 15:49:39 +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
Marc Mueller 655399eb7b
Use EntityDescription - aemet (#55744) 2021-09-06 10:12:09 +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
Robert Hillis 4463d50711
Use entity class attributes for aemet (#52499) 2021-07-05 07:53:16 +02:00
Álvaro Fernández Rojas 9247a157d8
Add AEMET conditional station updates (#50227) 2021-05-14 13:28:48 +02: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 9e9ba53f0e
Move SensorEntity last in the inheritance tree (#48230) 2021-03-22 20:05:13 +01:00
Erik Montnemery e0cd7072d6
Migrate integrations a-c to extend SensorEntity (#48210) 2021-03-22 12:37:16 +01:00
Álvaro Fernández Rojas eecf07d7df
Add AEMET OpenData integration (#45074)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-02-13 21:53:28 +01:00