Commit graph

19 commits

Author SHA1 Message Date
Joost Lekkerkerker
1fdd056c0e
Fix ruff manual-dict-comprehension PERF403 (#120723)
* Fix PERF403

* Fix

* Fix
2024-06-28 14:17:47 +02:00
Marc Mueller
8809d3aa88
Add empty line after module docstring [g-i] (#112699) 2024-03-08 08:52:48 -05:00
Malte Franken
a7c94dda73
Add unique id to geonetnz_volcano sensors (#108556)
add unique id to each sensor
2024-01-21 14:03:28 +01:00
Ville Skyttä
5aadd7ffc9
Import util.dt as dt_util in components/[g-i]* (#93759) 2023-05-30 00:01:00 +03:00
epenet
4a3c0cd0a8
Adjust docstrings for ruff D404 (#89077) 2023-03-03 11:26:13 +01:00
epenet
d72c28a135
Use UnitOfLength in integrations (#84034) 2022-12-15 12:42:53 +01:00
epenet
c717fd19de
Move attribution to standalone attribute [e-g] (#80513) 2022-10-18 10:04:54 +02:00
epenet
70702f3377
Use local UNIT constants in geonetnz_volcano (#80323) 2022-10-14 14:53:04 +02:00
epenet
503434e538
Use DistanceConverter in components (#80182)
* Use DistanceConverter in components

* Adjust for METRIC_SYSTEM
2022-10-12 21:33:38 +02:00
epenet
b043053aad
Improve entity type hints [g] (#77145) 2022-08-26 11:37:12 +02:00
epenet
a46c25d2c8
Use _attr_should_poll in components [a-g] (#77268) 2022-08-26 10:15:33 +02:00
epenet
30a64bd0f2
Add sensor setup type hints [g-h] (#63316)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 19:13:59 +01:00
Erik Montnemery
6de6a5dc14
Move temperature conversions to sensor base class (3/8) (#54469)
* Move temperature conversions to entity base class (3/8)

* Fix FritzBox sensor

* Fix tests
2021-08-12 14:23:56 +02:00
Erik Montnemery
339a56e434
Migrate integrations f-h to extend SensorEntity (#48212) 2021-03-22 19:45:17 +01:00
Marc Mueller
9e1a6610dc
Update typing 07 (#48057) 2021-03-18 08:02:55 +01:00
Erik Montnemery
af4d06b12e
Update integrations f-i to override extra_state_attributes() (#47757) 2021-03-11 16:57:47 +01:00
springstan
ad102b3840
Use f-strings in integrations starting with "F"and"G" (#32150)
* Use f-strings in integrations starting with F

* Use f-strings in tests for integrations starting with F

* Use f-strings in integrations starting with G

* Use f-strings in tests for integrations starting with G

* Fix pylint error

* Fix broken test
2020-02-24 17:54:20 -08:00
Bas Nijholt
6a1753d6db Sort imports according to PEP8 for geonetnz_volcano (#29716) 2019-12-08 23:33:42 +01:00
Malte Franken
4e9e9efa43 GeoNet NZ Volcanic Alert Level sensor (#26901)
* first version of new integration

* moved icon to shared consts

* added unit tests

* transformed from geolocation to sensor integration

* alert level is now the state of the sensor

* adopted unit tests

* fixed comment

* keep all sensors registered even if the feed update fails intermittently

* bumped version of upstream library

* bumped version of integration library

* regenerated requirements

* bumped version of integration library

* bumped version of integration library

* fixed generated file

* removed commented out code

* regenerated config flow file

* update to latest integration library version

* simplified code

* removed debug log statement

* simplified code structure

* defined constant

* use core interfaces

* moved test and fixture

* sorted imports

* simplified patching

* moved fixture to central config file
2019-11-19 14:00:59 +01:00