Kenneth J. Miller
84cd0da26b
Add Airly gas sensors ( #77908 )
...
* Add support for gases queryable via Airly API:
CO, NO₂, O₃, SO₂
* Add tests for above sensors and update test fixtures
2022-09-16 15:19:30 -06:00
Maciej Bieniek
7b5cf63a46
Migrate Airly to new entity naming style ( #74995 )
2022-07-11 17:30:22 +02:00
Maciej Bieniek
c14dcdb077
Add `configuration_url` to Airly integration ( #58911 )
2021-11-02 09:39:23 +01:00
Maciej Bieniek
eb9d242ade
Move AirlySensorEntityDescription to sensor platform ( #55277 )
2021-08-26 18:40:42 +02:00
Maciej Bieniek
bd550c4559
Use AQI, PM1, PM25, PM10 device classes in Airly ( #54742 )
2021-08-18 02:40:06 +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
Maciej Bieniek
c0e84a7b32
Use SensorEntityDescription in Airly integration ( #53540 )
2021-07-27 12:08:31 +02:00
Maciej Bieniek
3d556f14a5
Remove `air_quality` platform from Airly integration ( #52225 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-06-28 10:15:56 +02:00
Maciej Bieniek
c9178e58b5
Add support for state class for Airly sensor ( #51285 )
2021-05-31 16:00:58 +02:00
Maciej Bieniek
3bdefc5da7
Use constants with TypedDict ( #50879 )
2021-05-20 10:34:32 +01:00
Maciej Bieniek
6df0190aeb
Improve type annotations for Airly integration ( #49898 )
2021-05-07 09:47:52 -05:00
Maciej Bieniek
513685bbea
Add dynamic update interval to Airly integration ( #47505 )
...
* Add dynamic update interval
* Update tests
* Improve tests
* Improve comments
* Add MAX_UPDATE_INTERVAL
* Suggested change
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Use async_fire_time_changed to test update interval
* Fix test_update_interval
* Patch dt_util in airly integration
* Cleaning
* Use total_seconds instead of seconds
* Fix update interval test
* Refactor update interval test
* Don't create new context manager
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-04-27 23:34:53 +02:00
Yuval Aboulafia
2a0c36589f
Centralize some Airly constants ( #45985 )
2021-02-05 12:41:36 +01:00
Maciej Bieniek
2e50c1be8e
Add nearest method to get data for Airly integration ( #44288 )
...
* Add nearest method
* Add tests
* Move urls to consts
* Simplify config flow
* Fix tests
* Update tests
* Use in instead get
* Fix AirlyError message in tests
* Fix manual update entity tests
* Clean up tests
* Fix after rebase
* Increase test coverage
* Format the code
* Fix after rebase
2021-01-04 23:14:45 +01:00
Maciej Bieniek
8258dcf41d
Add device_info property and simplify generation of unique_id for Airly integration ( #38479 )
2020-08-05 12:55:14 +02:00
Maciej Bieniek
16670a38a4
Dynamic update interval for Airly integration ( #31459 )
...
* Initial commit
* dynamic update
* Don't update when add entities
* Cleaning
* Fix MAX_REQUESTS_PER_DAY const
* Fix pylint errors
* Fix comment
* Migrate to DataUpdateCoordinator
* Cleaning
* Suggested change
* Change try..except as suggested
* Remove unnecessary self._attrs variable
* Cleaning
* Fix typo
* Change update_interval method
* Add comments
* Add ConfigEntryNotReady
2020-03-25 11:13:28 -07:00
Maciej Bieniek
ec78821161
Add sensor platform to Airly integration ( #27717 )
...
* Add sesnor.py file
* Move AirlyData to __init__
* Cleaning
* Update .coveragerc file
* Sort consts
* Sort imports
* Remove icons from sensors with device_class
2019-10-16 12:06:52 +02:00
Maciej Bieniek
8ba4ee1012
Add Airly integration ( #26375 )
...
* Add Airly integration
* Update .coveragerc file
* Remove AVAILABLE_CONDITIONS and fix device_class
* Don't create client on every update
* Rename client to session
* Rename state_attributes to device_state_attributes
* Remove log latitude and longitude
* Fix try...except
* Change latitude and longitude to HA defaults
* _show_config_form doesn't need coroutine
* Simplify config_flow errors handlig
* Preetier
* Remove unnecessary condition
* Change sensor platform to air_quality
* Remove PM1
* Make unique_id more unique
* Remove ,
* Add tests for config_flow
* Move conf to CONFIG
* Remove domain from unique_id
* Change the way update of attrs
* Language and attrs
* Fix attrs
* Add aiohttp error handling
* Throttle as decorator
* Suggested change
* Suggested change
* Invert condition
* Cleaning
* Add tests
* Polish no sesnor error handling
* Better strings
* Fix test_invalid_api_key
* Fix documentation url
* Remove unnecessary test
* Remove language option
* Fix test_invalid_api_key once again
* Sort imports
* Remove splits in strings
2019-10-04 13:58:29 +02:00