Aaron Bach
ee215fb589
Streamline `hass.data` storage for AirVisual ( #64476 )
2022-01-19 14:32:23 -07:00
epenet
c71fe71654
Use new SensorDeviceClass enum in airvisual ( #61261 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 12:49:02 -07:00
Tobias Sauerwein
63c377a239
Use state class enums in airvisual ( #60819 )
2021-12-02 09:53:02 +01:00
Robert Hillis
59fe30e589
Use DeviceInfo class - A ( #57859 )
2021-10-22 16:35:39 +02:00
Aaron Bach
47678c5995
Add entity categories for appropriate AirVisual entities ( #58102 )
2021-10-20 15:22:48 -07:00
Aaron Bach
3da3d26573
Make sure AirVisual data storage conforms to standards ( #57806 )
2021-10-16 23:58:39 -06:00
Aaron Bach
b72f1553ea
Use current config entry standards for AirVisual ( #57132 )
2021-10-11 09:17:43 -06:00
Aaron Bach
441e99b439
Add long-term statistics for AirVisual sensors ( #55415 )
2021-09-14 22:08:54 +02:00
Aaron Bach
c9e8d42405
Use EntityDescription - airvisual ( #55125 )
2021-08-25 10:51:02 +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
Marc Mueller
0815eede4b
Replace lists with tuples (2) ( #53685 )
2021-07-30 01:20:03 +02:00
Aaron Bach
8d9345c407
Add missing type annotations to Airvisual ( #52615 )
2021-07-21 22:18:08 +02:00
Robert Hillis
7fef87691a
Use entity class attributes for airvisual ( #52503 )
...
* Use entity class attributes for airvisual
* fix
* rework
* tweaks
* finish
* remove overriden available attribute
* rework
2021-07-21 14:07:26 +02:00
Aaron Bach
bf4ca2d68d
Modify AirVisual states to be translatable ( #53133 )
...
* Modify AirVisual states to be translatable
* Make constant names consistent
2021-07-19 18:01:36 +02:00
Aaron Bach
5ce4de7bbb
Migrate AirVisual `air_quality` platform to `sensor` platform ( #52349 )
...
* Migrate AirVisual air_quality platform sensors
* Remove redundancy
* Cleanup
* Properly set available
* Unwind config_entry -> entry name change
* More unwinding
* Rename
* Update homeassistant/components/airvisual/sensor.py
Co-authored-by: Franck Nijhof <git@frenck.dev>
* Code review
* Linting
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-07-04 12:16:06 -06:00
Aaron Bach
3902f0bdd4
Speed up lookup of AirVisual pollutant labels, levels, and units ( #52327 )
...
* Speed up lookup of AirVisual pollutant levels, labels, and units
* Mispellings
2021-06-30 11:33:50 +02:00
Franck Nijhof
4007430d72
Small entity attribute cleanup in AirVisual ( #51601 )
...
* Small entity attribute cleanup in AirVisual
* Fix icon in sensor update
2021-06-08 08:29:04 +02: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
tkdrob
a5a45f29e2
Cleanup unused loggers ( #46510 )
2021-02-14 13:46:58 +01:00
Aaron Bach
3bdf962838
Add ability to configure AirVisual with city/state/country in UI ( #44116 )
2021-02-01 11:38:03 -10:00
Aaron Bach
73cce8e8e2
Replace strange "dict logic" in AirVisual pollutant level sensors (2 of 2) ( #44903 )
...
* Replace strange "dict logic" in AirVisual main pollutant sensor
* Move methods outside of class
* Cleanup
2021-01-28 16:32:21 -07:00
Aaron Bach
7ff02fe8d4
Replace strange "dict logic" in AirVisual pollutant level sensors (1 of 2) ( #44868 )
2021-01-20 15:24:56 -05:00
Aaron Bach
f82ca44aac
Bump pyairvisual to 5.0.2 ( #40554 )
...
* Bump pyairvisual to 5.0.2
* Fix tests
2020-09-24 15:31:47 -06:00
springstan
5a12056e59
Add and use volume cubic constants ( #40106 )
2020-09-15 19:59:26 +02:00
springstan
d2b1918e9c
Drop UNIT_ prefix for percentage constant ( #39383 )
2020-09-05 21:09:14 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
Aaron Bach
8661cf463a
Update AirVisual to use DataUpdateCoordinator ( #34796 )
...
* Update AirVisual to use DataUpdateCoordinator
* Empty commit to re-trigger build
* Don't include history or trends in config flow
* Code review
2020-05-01 11:29:58 -06:00
Aaron Bach
4d292c2723
Add support for AirVisual Node/Pro units ( #32815 )
...
* Add support for AirVisual Node Pro units
* Fixed tests
* Updated dependencies
* Guard looks cleaner
* Limit options update to geography-based entries
* Docstring
* Use proper precision in display_temp
* Add availability for AirVisualNodeProSensor
* Updated translations
* Samba stuff in play
* Wrap up Samba
* Fix tests
* Remove unnecessary updates
* Normalize labels
* Bump requirements
* Don't include configuration.yaml support for this new functionality
* Fix tests
* Code review
* Code review
* Update coveragerc
* Code review
2020-04-23 01:41:14 +02:00
Aaron Bach
f53dfc4308
Don't reinvent callback handler removal logic in several integ… ( #33726 )
2020-04-05 22:36:23 -07:00
Aaron Bach
0e2fa7700d
Allow more than one AirVisual config entry with the same API k… ( #33072 )
...
* Allow more than one AirVisual config entry with the same API key
* Add tests
* Correctly pop geography
* Code review
* Code review
2020-03-24 11:39:38 -07:00
Aaron Bach
21cff003f8
Add options flow for AirVisual ( #32634 )
...
* Add options flow for AirVisual
* Code review
Co-Authored-By: Robert Svensson <Kane610@users.noreply.github.com>
Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
2020-03-10 14:16:25 -06:00
Aaron Bach
e9a7b66df6
Add config entry for AirVisual ( #32072 )
...
* Add config entry for AirVisual
* Update coverage
* Catch invalid API key from config schema
* Rename geographies to stations
* Revert "Rename geographies to stations"
This reverts commit 5477f89c24cb3f58965351985b1021fc5fc794a5.
* Update strings
* Update CONNECTION_CLASS
* Remove options (subsequent PR)
* Handle import step separately
* Code review comments and simplification
* Move default geography logic to config flow
* Register domain in config flow init
* Add tests
* Update strings
* Bump requirements
* Update homeassistant/components/airvisual/config_flow.py
* Update homeassistant/components/airvisual/config_flow.py
* Make schemas stricter
* Linting
* Linting
* Code review comments
* Put config flow unique ID logic into a method
* Fix tests
* Streamline
* Linting
* show_on_map in options with default value
* Code review comments
* Default options
* Update tests
* Test update
* Move config entry into data object (in prep for options flow)
* Empty commit to re-trigger build
2020-02-28 20:14:17 -07:00
Ville Skyttä
496bd3dddf
Add and use more unit constants ( #32122 )
...
* Add and use speed constants
* Add and use meter based volume and area constants
* Add and use more mass unit constants
* Add and use concentration unit constants
* Add and use watts per square meter constant
* Use more time constants
* Use more data constants
2020-02-24 17:52:14 -08:00
springstan
524a1a7587
Use f-strings in integrations starting with "A" ( #32110 )
...
* Use f-strings in integrations starting with A
* Use f-strings in tests for integrations starting with A
* Fix pylint by renaming variable
* Fix nested for loop in f-string for aprs device_tracker
* Break long lines into multiple short lines
* Break long lines into multiple short lines v2
2020-02-23 13:38:05 -08:00
Ville Skyttä
5216477353
Be consistent with Home Assistant and Hass.io spelling ( #30500 )
...
* Be consistent with Home Assistant spelling
* Be consistent with Hass.io spelling
2020-01-05 14:09:17 +02:00
bouni
62fcea2a8d
moved imports to top level ( #27781 )
2019-10-17 15:04:41 +02:00
Franck Nijhof
ad51615718
Use literal string interpolation in integrations A (f-strings) ( #26377 )
...
* Use literal string interpolation in integrations A (f-strings)
* Black
2019-09-03 09:11:36 -05:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
cgtobi
2c07bfb9e0
Remove dependencies and requirements ( #23024 )
...
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit fe7171b4cd
.
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit 391355ee2c
.
* Remove dependencies and requirements
* Fix flake8 complaints
* Fix more flake8 complaints
* Revert non-component removals
2019-04-12 10:13:30 -07:00
Tobias Sauerwein
048b100eea
Clean up docstrings ( #22679 )
...
* Clean up docstrings
* Fix long lines
* Fix more docstrings
* Fix more docstrings
* Fix more docstrings
2019-04-03 17:40:03 +02:00
Paulus Schoutsen
f5076188ef
Consolidate all platforms that have no tests ( #22096 )
...
* Consolidate
* Fix tests
* Update imports
* Fix import
* Use importlib because integration and package share name
* Fix more tests
* Update .coveragerc and CODEOWNERS
2019-03-16 20:44:05 -07:00