1
0
mirror of https://github.com/home-assistant/core.git synced 2025-05-02 21:19:16 +00:00

29 Commits

Author SHA1 Message Date
Franck Nijhof
b0cee0bc46
String formatting and max line length - Part 1 ()
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-12-22 10:12:50 +01:00
epenet
f502f8c931
Use attributes in coinbase sensor ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-10-14 12:35:06 +02:00
epenet
0f792eb92e
Improve entity type hints [c] () 2022-08-19 13:02:46 +02:00
Tom Brien
bb7593351b
Add option for exchange rate sensor precision to Coinbase ()
* Add user option for precision to exchange rate sensors

* Add tests

* Add strings
2022-03-30 13:51:44 +02:00
epenet
47812575d0
Add setup type hints [c-d] ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-05 15:05:22 +01:00
Tom Brien
1268cefc38
Use state class enum for Coinbase () 2021-12-01 17:26:53 +01:00
Ville Skyttä
39691faccc
Use DeviceEntryType in non-typechecked code too () 2021-11-23 10:04:33 +01:00
Tom Brien
fc58df6df9
Change Coinbase account state class to total () 2021-11-09 13:00:12 +01:00
Tom Brien
f46ba2b38b
Add state class to Coinbase sensors () 2021-11-09 07:28:39 +01:00
Tom Brien
11d8bcf0e2
Register Coinbase service in Device Registry and provide configuration URL () 2021-10-26 16:39:46 +02:00
Bram Kragten
86d24bec75
Update icons for MDI 6 () 2021-09-13 19:29:38 +02:00
Erik Montnemery
4e07ab1b32
Move temperature conversions to sensor base class (1/8) ()
* 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
Tom Brien
d842fc288f
Ignore Coinbase vault wallets ()
* Exclude vault balances

* Update option flow validation

* Update test name

* Add missed check

* Fix dangerous default
2021-08-06 09:34:21 -07:00
Tom Brien
db97fd3d5b
Support user-defined base currency for Coinbase exchange rate sensors () 2021-07-14 21:50:23 -07:00
Tom Brien
b3a625593e
Add update listener to Coinbase ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-07-02 11:15:05 +02:00
Tom Brien
897f5d9247
Coinbase code quality improvements from review ()
* Fix breaking loop if single bad currency

* Remove unneeded update

* Reduce executor calls and use helper

* Avoid setting up integration when not needed in test

* Remove defunct info from strings

* Move already configured check

* Move instance update out of data class init
2021-06-29 11:54:38 -04:00
Tom Brien
9e50bd0b30
Only load requested coinbase accounts () 2021-06-28 20:21:04 +02:00
Tom Brien
fd1d110b80
Add config flow for Coinbase ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-06-28 16:38:12 +02:00
Lén
99e58f3c18
Fix coinbase response pagination ()
* Fix issue 

* next is a python keyword
2021-05-22 19:31:49 +02:00
Erik Montnemery
e0cd7072d6
Migrate integrations a-c to extend SensorEntity () 2021-03-22 12:37:16 +01:00
Erik Montnemery
6c084ae6ce
Update integrations a-e to override extra_state_attributes() () 2021-03-11 16:51:03 +01:00
Bram Kragten
9ecaa10e51
Adjust icons for MDI bump () 2020-07-14 22:17:14 +02:00
springstan
fca90a8ddc
Improve string formatting v5 ()
* Improve string formatting v5

* Address review comments
2020-04-05 17:48:55 +02: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
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
cgtobi
2c07bfb9e0 Remove dependencies and requirements ()
* Remove dependencies and requirements

* Revert "Remove dependencies and requirements"

This reverts commit fe7171b4cd30889bad5adc9a4fd60059d05ba5a7.

* Remove dependencies and requirements

* Revert "Remove dependencies and requirements"

This reverts commit 391355ee2cc53cbe6954f940062b18ae34b05621.

* 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 ()
* 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 ()
* 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