Joost Lekkerkerker
123cf07920
Clean up fitbit const ( #95545 )
2023-07-22 13:07:34 +02:00
Franck Nijhof
3e85a29b86
Move overlapping pylint rules to ruff, disable mypy overlap ( #94359 )
2023-06-27 17:42:46 +02:00
Carlos Cristobal
3614114a8f
Revert "Replace Fitbit weight SensorStateClass measurement with total" ( #89126 )
2023-03-05 13:36:25 +01:00
epenet
50f908ce2d
Use load_json_object in fitbit ( #88585 )
...
* Use load_json_object in fitbit
* Remove unnecessary cast
2023-03-01 07:44:29 +01:00
epenet
ba23816a0c
Inverse json import logic ( #88099 )
...
* Fix helpers and util
* Adjust components
* Move back errors
* Add report
* mypy
* mypy
* Assert deprecation messages
* Move test_json_loads_object
* Adjust tests
* Fix rebase
* Adjust pylint plugin
* Fix plugin
* Adjust references
* Adjust backup tests
2023-02-16 11:37:57 +01:00
Carlos Cristobal
9756131473
Replace Fitbit weight SensorStateClass measurement with total ( #88118 )
...
* Remove SensorStateClass.MEASUREMENT from weight
* Using SensorStateClass.TOTAL for weight
2023-02-14 16:15:09 -05:00
Erik Montnemery
78c9b70c8d
Sort manifests 3 ( #87024 )
2023-02-08 20:19:19 +01:00
Carlos Cristobal
8bb5763ea0
Fix Fitbit state for values over 999 ( #85251 )
...
* Remove comma thousands formatting
* Add calorie and bpm to units
* Updating device and state classes
* Revert "Updating device and state classes"
This reverts commit ae77cf3cd7
.
* Revert "Add calorie and bpm to units"
This reverts commit 7d82bb1c12
.
* Removing unnecessary formatting
2023-01-06 14:12:41 +01:00
Franck Nijhof
cb13418bab
String formatting and max line length - Part 2 ( #84393 )
2022-12-22 11:38:59 +01:00
epenet
62d22d7a2d
Refactor fitbit descriptions to use device classes ( #83936 )
2022-12-13 21:49:41 +01:00
Jean-François Paris
532c6b74d4
Enable long term stats for fitbit entities ( #81934 )
2022-11-16 09:27:51 +01:00
epenet
c717fd19de
Move attribution to standalone attribute [e-g] ( #80513 )
2022-10-18 10:04:54 +02:00
epenet
1445e08090
Replace `is_metric` with `is METRIC_SYSTEM` ( #80262 )
2022-10-14 12:22:11 +02:00
Nathan Broadbent
1907b87666
Add unique ID to fitbit ( #79587 )
...
* Set unique ID for fitbit sensors, including the user ID
* Remove fitbit_ from unique ids (see: https://developers.home-assistant.io/docs/entity_registry_index/#unique-id )
* change fitbit user_profile type to dict[str, Any]
* Fitbit: define a default unique ID, and add battery info if present
* No need for trailing _battery in unique ID, since it already contains "devices/battery_"
2022-10-04 14:28:00 +02:00
Nathan Broadbent
9d2ba7c008
Use constant in fitbit messages ( #79586 )
...
Use FITBIT_CONFIG_FILE constant in configurator messages and buttons
2022-10-04 12:13:40 +02:00
Martin Hjelmare
c05905ebda
Remove callback decorator from coroutine functions ( #75626 )
...
* Remove callback decorator from coroutine functions
* Remove some more callback decorators
2022-07-22 19:09:02 +02:00
J. Nick Koston
5b755b74fb
Add loggers to integration manifest.json ( #65083 )
2022-01-28 13:37:53 -08:00
epenet
81461832c3
Import configurator ( #64211 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-18 10:18:37 -08:00
Martin Hjelmare
ff530dce0d
Fix fitbit no SSL URL handling ( #62270 )
2021-12-18 15:00:07 +01:00
Marc Mueller
184e0d7fdf
Use assignment expressions 26 ( #58187 )
2021-10-22 11:31:17 +02:00
Jason Nader
628e59ff11
Clarify that only HTTPS can be used in fitbit ( #57116 )
2021-10-13 08:45:59 -07:00
Marc Mueller
fed5f5e3b9
Use EntityDescription - fitbit ( #55925 )
2021-09-23 20:08:47 +02:00
Erik Montnemery
6de6a5dc14
Move temperature conversions to sensor base class (3/8) ( #54469 )
...
* Move temperature conversions to entity base class (3/8)
* Fix FritzBox sensor
* Fix tests
2021-08-12 14:23:56 +02:00
Michael
8c5c8ed153
Add strict type annotations to fitbit ( #50740 )
...
* add strict type annotations
* cast json_load()
* apply suggestions
* move SCAN_INTERVAL back to platform file
* apply suggestion
* apply suggestion
* apply suggestions
* rename to PARENT_PLATFORM_SCHEMA
2021-05-21 13:33:54 +01:00
Vincent Le Bourlot
219ad5cd9e
Fix fitbit RuntimeError: I/O must be done in the executor ( #50058 )
2021-05-05 09:19:51 +02:00
Franck Nijhof
055cdc64c0
Add support for IoT class in manifest ( #46935 )
2021-04-15 10:21:38 +02:00
Erik Montnemery
339a56e434
Migrate integrations f-h to extend SensorEntity ( #48212 )
2021-03-22 19:45:17 +01:00
Erik Montnemery
af4d06b12e
Update integrations f-i to override extra_state_attributes() ( #47757 )
2021-03-11 16:57:47 +01:00
czechmark
16364636d1
Update fitbit battery status ( #42980 )
...
* Read the device_status in order to update the fitbit battery
* Read the device_status in order to update the fitbit battery
2020-11-13 23:10:04 +01:00
Colin Frei
13b6fe2bba
Fix fitbit current URL not available while configuring ( #40547 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-09-27 23:19:46 +02:00
Colin Frei
5fd059a3b6
Use correct URL for Fitbit callbacks ( #39823 )
2020-09-09 20:19:37 +02:00
springstan
d2b1918e9c
Drop UNIT_ prefix for percentage constant ( #39383 )
2020-09-05 21:09:14 +02:00
Robbie Trencheny
b859be8cea
Remove my codeownership over things I dont use anymore ( #37401 )
2020-07-03 09:41:23 +02:00
springstan
9311b02369
Use LENGTH_FEET constant ( #34053 )
2020-06-10 21:38:29 +02:00
Quentame
1855c91988
Use CONF_CLIENT_ID & CONF_CLIENT_SECRET from homeassistant.const ( #36233 )
...
* Use CONF_CLIENT_ID & CONF_CLIENT_SECRET from homeassistant.const
* Fix pylint
* Use in tests
* Search for "client_id"
* Fix tests
* Fix test
* Fix test
2020-05-30 17:27:20 +02:00
Franck Nijhof
e3e3a113e9
async_get_url -> get_url ( #35382 )
2020-05-08 21:53:28 +02:00
Franck Nijhof
2223592486
Add get_url helper, deprecate base_url ( #35224 )
2020-05-08 02:29:47 +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
springstan
ad102b3840
Use f-strings in integrations starting with "F"and"G" ( #32150 )
...
* Use f-strings in integrations starting with F
* Use f-strings in tests for integrations starting with F
* Use f-strings in integrations starting with G
* Use f-strings in tests for integrations starting with G
* Fix pylint error
* Fix broken test
2020-02-24 17:54:20 -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
Franck Nijhof
a84741392b
Format all manifests with prettier ( #30521 )
2020-01-06 21:28:23 +01:00
Bas Nijholt
ca0fad2cbb
Sort imports according to PEP8 for components starting with "F" ( #29766 )
2019-12-09 14:14:40 +01:00
Quentame
0965e358ea
Move imports in fitbit component ( #27820 )
2019-10-17 17:14:53 -07:00
Franck Nijhof
c7da781efc
Update documentation link URL for integrations in all manifests ( #27114 )
2019-10-02 09:25:44 -07:00
Franck Nijhof
fa79ef1220
Use literal string interpolation in integrations E-G (f-strings) ( #26379 )
2019-09-03 17:10:56 +02:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Thomas Hervé
a9c85b9944
Bump oauthlib version ( #24111 )
...
* Bump oauthlib version
* Bump fitbit instead
* Update requirements
2019-05-31 09:17:50 +02: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
Paulus Schoutsen
57f17707c6
Specify configurator as dependency ( #23030 )
2019-04-11 20:11:56 -07:00