Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ( #112690 )
...
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Erik Montnemery
426f73b1f4
Add State.last_reported ( #113511 )
...
* Add State.last_reported
* Update tests
* Update test snapshots
* Call state_reported listeners when firing state_changed event
* Add tests
2024-03-20 21:05:07 +01:00
Sid
00ec7f11f0
Enable Ruff rule PT007 ( #113764 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2024-03-19 09:01:07 +01:00
Jan-Philipp Benecke
324c922c0d
Remove deprecated `hass.components` from withings webhook tests ( #113687 )
...
* Remove deprecated `hass.components` from withings webhook tests
* Use patch.object
2024-03-17 17:48:58 +01:00
Sid
27e844e3bf
Add ruff B005, B015, B032 and fix occurrences ( #113543 )
...
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-15 17:48:37 -10:00
Marc Mueller
aa16a9d707
Add empty line after module docstring (3) ( #112750 )
2024-03-08 20:38:34 +01:00
Marc Mueller
87165c0d6e
Add empty line after module docstring [tests t-z] ( #112712 )
2024-03-08 14:44:56 +01:00
Franck Nijhof
e0a9dcd996
Add label registry ( #110821 )
2024-02-19 11:59:08 +01:00
Robert Resch
b409933d19
Add DurationConverter ( #108865 )
...
* Add DurationConverter
* Update withings snapshots
* Add sensor test
* Fix tests
* Update snapshots after #108902 was merged
2024-01-30 23:08:12 +01:00
Robert Resch
7d2c6a1bb6
Add check for valid initial_suggested_unit ( #108902 )
...
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-01-30 18:55:59 +01:00
Joost Lekkerkerker
d4ac5e492b
Add entity registry test to Withings ( #108900 )
2024-01-26 09:33:56 +01:00
Joost Lekkerkerker
883711fb35
Add icon translations to Withings ( #108385 )
...
* Add icon translations to Withings
* Add icon translations to Withings
* Add icon translations to Withings
* Add icon translations to Withings
* Add icon translations to Withings
2024-01-21 21:34:44 +01:00
Aarni Koskela
706add4a57
Switch formatting from black to ruff-format ( #102893 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-11-27 14:38:59 +01:00
Joost Lekkerkerker
ccc8804906
Bump aiowithings to 2.0.0 ( #104579 )
2023-11-27 10:53:41 +01:00
Joost Lekkerkerker
52736c6039
Sort Withings sleep data on end date ( #103454 )
...
* Sort Withings sleep data on end date
* Sort Withings sleep data on end date
2023-11-06 07:58:13 +01:00
Joost Lekkerkerker
7319abcab0
Show a warning when no Withings data found ( #103066 )
2023-10-30 19:40:27 +01:00
Joost Lekkerkerker
953d5e0080
Add 2 properties to Withings diagnostics ( #103067 )
2023-10-30 15:47:08 +01:00
Joost Lekkerkerker
9600c7fac1
Add workout calendar to Withings ( #102589 )
2023-10-24 16:38:11 +02:00
Joost Lekkerkerker
b42c47e800
Add last workout sensors to Withings ( #102541 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Robert Resch <robert@resch.dev>
2023-10-24 11:07:47 +02:00
Joost Lekkerkerker
42c062de68
Only add Withings sleep sensors when we have data ( #102578 )
...
Co-authored-by: Robert Resch <robert@resch.dev>
2023-10-23 12:59:13 +02:00
Joost Lekkerkerker
a6ade59133
Make Withings sleep sensor only show last night ( #101993 )
2023-10-23 10:39:17 +02:00
Joost Lekkerkerker
54ba376b4b
Make Withings bed presence sensor dynamic ( #102058 )
...
* Make Withings bed presence sensor dynamic
* Make Withings bed presence sensor dynamic
* Update homeassistant/components/withings/binary_sensor.py
Co-authored-by: J. Nick Koston <nick@koston.org>
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-10-23 09:01:58 +02:00
Joost Lekkerkerker
04b883a8e9
Add activity sensors to Withings ( #102501 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-10-22 23:47:18 +02:00
Joost Lekkerkerker
e3b238861d
Clean up withings tests ( #102548 )
2023-10-22 21:58:30 +02:00
Joost Lekkerkerker
235a3486ee
Add sensors for Withings Goals ( #102468 )
2023-10-21 21:51:37 +02:00
Joost Lekkerkerker
857f2e1d86
Patch platform in Withings sensor test ( #102155 )
...
* Patch platform in Withings sensor test
* Fix feedback
2023-10-19 11:33:31 +02:00
Joost Lekkerkerker
471d1abe47
Add more measurement sensors to Withings ( #102074 )
2023-10-15 21:38:30 +02:00
Joost Lekkerkerker
b4e4a98f17
Add diagnostics to Withings ( #102066 )
2023-10-15 20:29:20 +02:00
Joost Lekkerkerker
dcb5faa305
Dynamically add sensors for new measurements in Withings ( #102022 )
...
* Dynamically add sensors for new data points in Withings
* Dynamically add sensors for new data points in Withings
* Add test
* Change docstring
* Store new measurements
* Fix feedback
* Add test back
* Add test back
* Add test back
2023-10-15 18:00:52 +02:00
Joost Lekkerkerker
05ee28cae5
Clean up Withings webhook ( #102038 )
2023-10-15 18:00:18 +02:00
Joost Lekkerkerker
dc19290271
Make Withings test sensors from entity registry ( #102025 )
...
Test entities from entity registry
2023-10-15 12:14:50 +02:00
Joost Lekkerkerker
0eb4567364
Check for port in Withings webhook creation ( #102026 )
...
Check if port is really 443
2023-10-15 12:12:46 +02:00
Joost Lekkerkerker
f9615999db
Add suggested display precision to Withings ( #102023 )
2023-10-14 23:00:50 -10:00
Joost Lekkerkerker
76083a0b4c
Update Withings measurements incrementally after the first update ( #102002 )
...
* Update incrementally after the first update
* Update incrementally after the first update
2023-10-14 16:19:04 +02:00
Joost Lekkerkerker
8a4fe5add1
Use aiowithings ( #101819 )
...
* Subscribe to Withings webhooks outside of coordinator
* Subscribe to Withings webhooks outside of coordinator
* Split Withings coordinator
* Split Withings coordinator
* Use aiowithings
* Use aiowithings
* Use aiowithings
* Update homeassistant/components/withings/sensor.py
* Merge
* Remove startdate
* Minor fixes
* Bump to 0.4.1
* Fix snapshot
* Fix datapoint
* Bump to 0.4.2
* Bump to 0.4.3
* Bump to 0.4.4
2023-10-14 11:52:35 +02:00
Joost Lekkerkerker
53e97fee0e
Improve Withings test fixtures ( #101931 )
2023-10-13 13:35:34 +02:00
Joost Lekkerkerker
d712a29052
Split Withings coordinators ( #101766 )
...
* Subscribe to Withings webhooks outside of coordinator
* Subscribe to Withings webhooks outside of coordinator
* Split Withings coordinator
* Split Withings coordinator
* Update homeassistant/components/withings/sensor.py
* Fix merge
* Rename MEASUREMENT_COORDINATOR
* Update homeassistant/components/withings/__init__.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Fix feedback
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-10-13 07:34:31 +02:00
Joost Lekkerkerker
3e4edc8edd
Move Withings entity descriptions to platforms ( #101820 )
2023-10-12 13:42:00 +02:00
Joost Lekkerkerker
ffb752c804
Subscribe to Withings webhooks outside of coordinator ( #101759 )
...
* Subscribe to Withings webhooks outside of coordinator
* Subscribe to Withings webhooks outside of coordinator
* Update homeassistant/components/withings/__init__.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* Update homeassistant/components/withings/__init__.py
Co-authored-by: J. Nick Koston <nick@koston.org>
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-10-11 00:06:42 +02:00
Joost Lekkerkerker
faea3b1634
Abort config flow when invalid token is received ( #101642 )
2023-10-08 13:32:35 +02:00
Joost Lekkerkerker
b2cad2370b
Add Withings webhooks after a slight delay ( #101542 )
2023-10-06 18:21:06 +02:00
Joost Lekkerkerker
425d961489
Delete existing Withings cloudhook ( #101527 )
2023-10-06 13:19:39 +02:00
Joost Lekkerkerker
5754e8721a
Fix Withings translations ( #101397 )
2023-10-04 16:45:13 +02:00
Joost Lekkerkerker
8b5bfd8cee
Add test helper for cloud status updates ( #100993 )
...
* Add helper for cloud status updates
* Move import
2023-09-27 17:08:51 +02:00
Joost Lekkerkerker
0f95de997f
Support cloudhooks in Withings ( #100916 )
...
* Support cloudhooks in Withings
* Support cloudhooks in Withings
* Support cloudhooks in Withings
* Remove strings
2023-09-26 21:52:18 +02:00
Joost Lekkerkerker
4ffac3e7ed
Cleanup Withings const import ( #100914 )
2023-09-26 13:16:37 +02:00
Joost Lekkerkerker
b0a7e68984
Rename Withings coordinator file ( #100899 )
...
Rename common.py to coordinator.py
2023-09-26 10:59:45 +02:00
Joost Lekkerkerker
4f63c7934b
Add coordinator to Withings ( #100378 )
...
* Add coordinator to Withings
* Add coordinator to Withings
* Fix tests
* Remove common files
* Fix tests
* Fix tests
* Rename to Entity
* Fix
* Rename webhook handler
* Fix
* Fix external url
* Update homeassistant/components/withings/entity.py
Co-authored-by: Luke Lashley <conway220@gmail.com>
* Update homeassistant/components/withings/entity.py
Co-authored-by: Luke Lashley <conway220@gmail.com>
* Update homeassistant/components/withings/entity.py
Co-authored-by: Luke Lashley <conway220@gmail.com>
* Update homeassistant/components/withings/entity.py
Co-authored-by: Luke Lashley <conway220@gmail.com>
* fix imports
* Simplify
* Simplify
* Fix feedback
* Test if this makes changes clearer
* Test if this makes changes clearer
* Fix tests
* Remove name
* Fix feedback
---------
Co-authored-by: Luke Lashley <conway220@gmail.com>
2023-09-26 09:17:11 +02:00
Joost Lekkerkerker
1737b27dd4
Generate withings webhook ID in config flow ( #100395 )
2023-09-15 12:58:56 +02:00
Joost Lekkerkerker
6fc1407613
Extract Withings API specifics in own class ( #100363 )
...
* Extract Withings API specifics in own class
* Extract Withings API specifics in own class
* Ignore api test coverage
* fix feedback
2023-09-14 13:31:54 +02:00