Marc Mueller
487fa0a905
Use assignment expressions 20 ( #57969 )
2021-10-20 20:31:00 +02:00
Erik Montnemery
1060630bbd
Fix crash in buienradar sensor due to self.hass not set ( #55438 )
2021-08-30 10:29:39 +02:00
Marc Mueller
17902c3ffa
Use EntityDescription - buienradar ( #54317 )
2021-08-21 20:28:31 +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
f5b3118d3c
Use entity class attributes for buienradar ( #53166 )
2021-07-19 21:22:20 +02:00
Franck Nijhof
a5cdc0157b
Remove deprecated YAML configuration from Buienradar ( #52939 )
2021-07-15 08:31:17 +02:00
Erik Montnemery
9b8a776001
Set device_class on temperature sensors A-E ( #49524 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-07-12 22:45:29 +02:00
Rob Bierbooms
c063f14c24
Add configuration flow for Buienradar integration ( #37796 )
...
* Add configuration flow for Buienradar integration
* Update buienradar camera tests to work with config flow
* Update buienradar weather tests to work with config flow
* Update buienradar sensor tests to work with config flow
* Remove buienradar config_flow tests to pass tests
* Add config flow tests for buienradar integration
* Increase test coverage for buienradar config_flow tests
* Move data into domain
* Remove forecast option
* Move data to options
* Remove options from config flow
* Adjust tests
* Adjust string
* Fix pylint issues
* Rework review comments
* Handle import
* Change config flow to setup camera or weather
* Fix tests
* Remove translated file
* Fix pylint
* Fix flake8
* Fix unload
* Minor name changes
* Update homeassistant/components/buienradar/config_flow.py
Co-authored-by: Ties de Kock <ties@tiesdekock.nl>
* Remove asynctest
* Add translation
* Disable sensors by default
* Remove integration name from translations
* Remove import method
* Drop selection between platforms, disable camera by default
* Minor fix in configured_instances
* Bugfix in weather
* Rework import
* Change unique ids of camera
* Fix in import
* Fix camera tests
* Fix sensor test
* Fix sensor test 2
* Fix config flow tests
* Add option flow
* Add tests for option flow
* Add import tests
* Some cleanups
* Apply suggestions from code review
Apply code suggestions
Co-authored-by: Franck Nijhof <git@frenck.dev>
* Fix isort,black,mypy
* Small tweaks and added typing to new parts
* Fix review comments (1)
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Fix review comments (2)
* Fix issues
* Fix unique id
* Improve tests
* Extend tests
* Fix issue with unload
* Address review comments
* Add warning when loading platform
* Add load/unload test
Co-authored-by: Ties de Kock <ties@tiesdekock.nl>
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-05-04 13:49:16 +02:00
J. Nick Koston
3fa8ffa731
Enable mccabe complexity checks in flake8 ( #49616 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-04-25 12:38:40 +02:00
Erik Montnemery
e0cd7072d6
Migrate integrations a-c to extend SensorEntity ( #48210 )
2021-03-22 12:37:16 +01:00
J. Nick Koston
c820dd4cb5
Have pylint warn when user visible log messages do not start with capital letter or end with a period ( #48064 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-19 09:26:36 -05:00
Erik Montnemery
6c084ae6ce
Update integrations a-e to override extra_state_attributes() ( #47756 )
2021-03-11 16:51:03 +01:00
springstan
30b94892c4
Use strings instead of f-strings for constants ( #40619 )
2020-11-09 10:09:53 +01:00
springstan
06a133c3e9
Add and use length millimeters constant ( #40116 )
...
* Add and use length millimeters constant
* Fix pylint error
* Fix broken accuweather sensor test
2020-09-22 21:09:17 -05:00
springstan
e330468a13
Use pressure constants in code base ( #40262 )
2020-09-19 09:26:08 +02:00
springstan
d2b1918e9c
Drop UNIT_ prefix for percentage constant ( #39383 )
2020-09-05 21:09:14 +02:00
Rob Bierbooms
ff1709979f
Add unique ids for "buienradar" platforms weather and camera ( #37761 )
...
* Add unique ids for buienradar weather and camera
* Remove prefix from unique ids
2020-08-01 09:13:17 +02:00
springstan
ef9d9b17bd
Drop UNIT_ prefix for constants ( #34164 )
...
* Drop UNIT_ prefix for VOLT
* Drop UNIT_ prefix for DEGREE
* Drop UNIT_ prefix for CONDUCTIVITY
* Drop UNIT_ prefix for UV_INDEX
* Run isort
2020-04-21 19:45:53 +02:00
springstan
e2af216bcd
Clean up access to config in various integrations v4 ( #34174 )
...
* Clean up access to config in various integrations v4
* Address review comments
2020-04-14 20:38:55 +02:00
springstan
b893150154
Add and use UNIT_DEGREE constant ( #33978 )
...
* Add and use UNIT_DEGREE constant
* Replace more occurrences
* Add and use TEMP_KELVIN
* Run isort
2020-04-11 16:54:11 +02:00
springstan
328cadbaa2
Use LENGTH_KILOMETERS constant ( #33976 )
...
* Use LENGTH_KILOMETERS constant
* Fix tests by importing the constant directly
2020-04-11 02:12:39 +02:00
springstan
46bbe816f6
Remove None from dict.get(key, None) ( #33794 )
2020-04-07 21:06:05 +02:00
Franck Nijhof
e8a0abd107
String formatting improvements ( #33635 )
...
* String formatting improvements
* Found another one
2020-04-04 18:21:14 +02:00
Paulus Schoutsen
aef06a3544
Directly call write state 2 ( #33513 )
...
* Directly call async_write_ha_state pt2
* Directly call async_write_ha_state pt2
* Fix mock
* Address comments
2020-04-03 09:34:50 +02:00
springstan
f1a0ca7cd3
Add and use percentage constant ( #32094 )
...
* Add and use percentage constant
* Fix pylint error and broken test
2020-02-28 11:46:48 -08: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
a85808e325
Add and use time related constants ( #32065 )
...
* Add and use time related constants
* Sort time constants and reuse them in data rate constants
* Fix greeneyemonitor import
* Fix greeneyemonitor import V2
* Fix failing here_travel_time test
* Add TIME_MONTHS and TIME_YEARS
* Use TIME_MINUTES in opentherm_gw and isy994
* Add and use TIME_MILLISECONDS
* Change inconsistent ones
* Add TIME_MICROSECONDS and TIME_WEEKS
* Use constants in apcupsd and travisci
* Fix import error in upnp sensor.py
* Fix isy994 sensor.py using TIME_YEARS
* Fix dyson tests
* Use TIME_SECONDS in more places
* Use TIME_DAYS in google wifi
2020-02-23 22:09:24 +02: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
Bas Nijholt
663e2eaaff
sort imports according to PEP8 for buienradar ( #29623 )
2019-12-08 14:59:21 +01:00
Ties de Kock
a05144bb8b
Fix buienradar component and add smoke tests ( #27965 )
...
* Fixes the buienradar component and add smoke tests
* Fix errors due to circular imports after imports were moved.
* Add smoke test so this situation will be caught in the future.
* Add buienradar.util to coveragerc
* Refactor tests to standalone pytest test function style
* Add __init__ to buienradar tests
2019-10-21 13:52:25 +02:00
bouni
422885b7fd
Move imports in buienradar component ( #27873 )
2019-10-19 01:02:54 +02:00
Franck Nijhof
6a24d893c8
Use literal string interpolation in integrations B-D (f-strings) ( #26378 )
2019-09-03 17:09:59 +02:00
Paulus Schoutsen
66b905776b
Fix partly cloudy ( #26277 )
2019-08-29 13:22:29 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
MJJ
14c3b38461
Update to buienradar json api; and additional monitored_conditions ( #24463 )
...
* Update to json api; and additional sensors
* remove unneeded coordinate rounding
* minor optimizations
* Update CODEOWNERS
* Update sensor.py
unit conversion for:
- windgust (ms to km/h)
- windspeed (m/s to km/h)
- windspeed_1d (ms/km/h)
- visibility (m to km)
* Update weather.py
unit conversion for windspeed (m/s to km/h)
* Update sensor.py
* Update weather.py
* Update weather.py
* Update CODEOWNERS
* Update manifest.json
* Update CODEOWNERS
* Update CODEOWNERS
yet another try to get CODEOWNERS accepted...
* update codeowners
* update codeowners
* update
* updated codeowners to match manifest
2019-07-28 22:08:20 +02:00
Paulus Schoutsen
f995ab9d54
Don't pass in loop ( #23984 )
...
* Don't pass in loop
* Revert some changes
* Lint + Axis revert
* reinstate loop
* Fix a test
* Set loop
* Update camera.py
* Lint
2019-05-22 21:09:59 -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
Jason Hu
2b02c0d0fc
Fix build issue ( #22251 )
2019-03-21 07:32:13 -07:00
Paulus Schoutsen
4b1de61110
Use relative imports inside integrations ( #22235 )
...
* Use relative imports inside integrations
* Lint
* Fix automation tests
* Fix scene imports
2019-03-20 22:56:46 -07: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