Commit graph

28 commits

Author SHA1 Message Date
springstan
e330468a13
Use pressure constants in code base () 2020-09-19 09:26:08 +02:00
springstan
90f5b178ef
Use AREA_SQUARE_METERS constant in all integrations () 2020-09-15 15:00:26 -06:00
springstan
db582bdc1b
Use http status constants more, add HTTP_ACCEPTED and HTTP_BAD_GATEWAY ()
* Use http status codes and add HTTP_BAD_GATEWAY constant

* Address review comments:
 - using constants in tado integration
 - using constant in media_player init.py

* Add and use HTTP_ACCEPTED constant
2020-09-15 20:01:07 +03:00
springstan
621526bbae
Use moisture and moving device class in various integrations () 2020-09-13 16:33:54 +02:00
springstan
d2b1918e9c
Drop UNIT_ prefix for percentage constant () 2020-09-05 21:09:14 +02:00
Franck Nijhof
5b7a4434c4
Fix BloomSky KeyError: 'monitored_conditions' ()
Co-Authored-By: Paulus Schoutsen <balloob@gmail.com>
2020-04-23 16:00:57 -07:00
Erik Montnemery
b022e08db9
Rename BinarySensorDevice to BinarySensorEntity ()
* Rename BinarySensorDevice to BinarySensorEntity

* Tweak

* Move deprecation warning to __new__, add test

* Move deprecation warning back to __init__

* Move deprecation warning to __init_subclass
2020-04-23 21:57:07 +02:00
springstan
21dfee831f
Clean up access to config in various integrations v3 () 2020-04-09 09:26:06 +02:00
springstan
8d61893c39
Use HTTP_OK constant ()
* Use http ok constant

* Remove incorrect use

* Run isort

* Fix pylint by adding missing imports

* Fix pylint by fixing one import
2020-04-08 11:47:38 -05:00
springstan
0d2de919a6
Clean up after global variable deletion ()
* Clean up after global variable deletion

* Remove self from method calls
2020-04-06 10:32:04 -07:00
springstan
983ed8b8b4
Remove global variable from bloomsky () 2020-04-05 23:16:30 +02:00
Franck Nijhof
71a47fc80c
Enable pylint global-statement () 2020-04-04 20:10:55 +02:00
Paulus Schoutsen
f1d3c0d19b
Remove unused manifest fields () 2020-04-03 12:58:19 -07:00
springstan
f1a0ca7cd3
Add and use percentage constant ()
* Add and use percentage constant

* Fix pylint error and broken test
2020-02-28 11:46:48 -08:00
springstan
9801810552
Use f-strings in integrations starting with "B"-"E" ()
* Use f-strings in integrations starting with B

* Use f-strings in integrations starting with C

* Use f-strings in integrations starting with D

* Use f-strings in integrations starting with E

* Fix pylint errors

* Fix pylint errors v2

* Fix tests

* Fix tests v2
2020-02-24 08:47:52 -08:00
Franck Nijhof
6f92c19302
Correct integration names in manifests (A-B) ()
* Correct names in manifests (A-B)

* Just Baidu

* Asterisk Call Detail Records
2020-01-06 23:59:12 +01:00
Bas Nijholt
73de69896b Sort imports according to PEP8 for components starting with "B" () 2019-12-09 13:52:18 +01:00
Franck Nijhof
c7da781efc Update documentation link URL for integrations in all manifests () 2019-10-02 09:25:44 -07:00
Franck Nijhof
9c9c921922 Use Python3 new super syntax sugar () 2019-09-24 15:38:20 -07:00
Franck Nijhof
6a24d893c8 Use literal string interpolation in integrations B-D (f-strings) () 2019-09-03 17:09:59 +02:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Santobert
10b120f11f Fix bloomsky unit system ()
* initial commit - fix bloomsky unit system

* Add another warning

* Fix linting error

* Include metric sensor units

* Shorten a too long line
2019-07-24 19:37:36 +02:00
cgtobi
2c07bfb9e0 Remove dependencies and requirements ()
* 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
Paulus Schoutsen
c94b031db1
Fix unnecessary hass.components interaction ()
* Fix wemo

* Fix bloomsky

* Fix netatmo

* Fix one more reference
2019-04-11 23:37:45 -07:00
Paulus Schoutsen
cfe4cf30ad
Add manifests ()
* Add manifests

* Update auto name

* Update codeowners

* Add requirements from platforms

* Minor cleanup

* Incorporate changes from awarecan PR
2019-04-03 21:14:45 -07:00
Daniel Høyer Iversen
519315f9c8 pylint 2.3.0 ()
* pylint 2.3.0

* remove const

*  disable=syntax-error
2019-02-27 16:10:40 -05:00
Fabian Affolter
127c55e0c1
Update file header ()
* Update file header

* Update file header

* Update file header

* Update file header

* Update file header

* Fix lint issues
2019-02-13 21:21:14 +01:00
Paulus Schoutsen
e2d3c27e85
Embed all platforms into components ()
* Consolidate all components with platforms

* Organize tests

* Fix more tests

* Fix Verisure tests

* one final test fix

* Add change

* Fix coverage
2019-02-02 07:13:16 -08:00