Jan-Philipp Benecke
590b3d0fd4
Remove deprecated YAML import from seventeentrack ( #125852 )
2024-09-13 12:58:51 +02:00
Shai Ungar
b6609fa77c
Deprecate the dynamic package sensors in seventeentrack ( #116102 )
...
* Add deprecation comments for the dynamic package sensors
* Add deprecation comments for the dynamic package sensors
* Add deprecation comments for the dynamic package sensors
add more information when retrieving packages from service call
* Add deprecation comments for the dynamic package sensors
update deprecation comment
* 1. 17Track repair flow
2. update deprecation comment
* 1. remove description_placeholders
2. 2024.8 deprecated
* Update homeassistant/components/seventeentrack/repairs.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* 1. extract deprecated to constant
2. fix types
3. check for issue_id
4. add listener only when not deprecated
5. update which service to call
* Update homeassistant/components/seventeentrack/strings.json
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/seventeentrack/repairs.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* 1. move deprecate_sensor_issue to where needed
2. add entry_id to issue_id
3. use constant where needed
* update breaks in ha version
* Update homeassistant/components/seventeentrack/strings.json
* Remove obsolete tests
* Fix
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-07-07 16:55:38 +02:00
epenet
c49fce5541
Force alias when importing sensor PLATFORM_SCHEMA ( #120536 )
2024-06-26 12:14:13 +02:00
Joost Lekkerkerker
a45040af14
Add entity translations to 17track ( #116022 )
2024-04-23 22:30:20 +02:00
Shai Ungar
e0c785b2b4
Add coordinator to 17Track ( #115057 )
...
* Add coordinator to 17Track
* Add coordinator to 17Track
remove SensorEntityDescription (different PR)
* Update homeassistant/components/seventeentrack/coordinator.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/seventeentrack/sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Add coordinator to 17Track
fix CR
* Add coordinator to 17Track
fix second CR
* Add coordinator to 17Track
remove commented out code + fix display name
* Add coordinator to 17Track
created a set outside _async_create_remove_entities function
* Add coordinator to 17Track
fix CR
* Add coordinator to 17Track
fix CR 2
* Update homeassistant/components/seventeentrack/coordinator.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Add coordinator to 17Track
raise UpdateFailed if API throws an exception
* Add coordinator to 17Track
merge calls
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-04-23 09:01:45 +02:00
Shai Ungar
69356300f0
Address late review of 17track config flow ( #114283 )
...
* some fixes for 17track
* remove await
* fix test
2024-03-27 11:06:13 +01:00
Shai Ungar
3c06fbbd82
Add ConfigFlow for seventeentrack integration ( #111196 )
...
* Add config flow to 17Track
* Import config from configuration.yaml
* 1. move import to async_setup_platform
2. add USERNAME (email) in title for uniqueness
* Add options flow
* Add tests
* Add CONF_SHOW_ARCHIVED and CONF_SHOW_DELIVERED to data from options
* Update homeassistant/components/seventeentrack/__init__.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/seventeentrack/__init__.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/seventeentrack/config_flow.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/seventeentrack/manifest.json
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/seventeentrack/config_flow.py
Co-authored-by: Christopher Fenner <9592452+CFenner@users.noreply.github.com>
* Update homeassistant/components/seventeentrack/__init__.py
Co-authored-by: Christopher Fenner <9592452+CFenner@users.noreply.github.com>
* Update homeassistant/components/seventeentrack/sensor.py
Co-authored-by: Christopher Fenner <9592452+CFenner@users.noreply.github.com>
* 1. Added repair issues
2. _async_validate_input inlined
3. added unique id
4. take default scan interval
* fix
* 1. move async_create_issue to async_setup_platform
2. fix tests
3. black + pylint
* combine USER_SCHEMA and OPTIONS_SCHEMA
* small fix
* remove async_setup
* fix tests and add 100% coverage
* 1. remove CONFIG_SCHEMA
2. remove error log
3. add issue with more description when import issues happen
4. some linting
* Update homeassistant/components/seventeentrack/config_flow.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/seventeentrack/sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/seventeentrack/sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/seventeentrack/sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* use freezer
use AsyncMock
fix tests
* add test_flow_fails
parametrize tests where needed
test_import_flow_already_configured - where a unique id already configured (abort flow)
* lint
* fix rebase issues
* some more fix
* 17Track revert tests and put them in a different PR
* adapt tests to MockConfigEntry
* Update tests/components/seventeentrack/test_sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/seventeentrack/sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/seventeentrack/sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update tests/components/seventeentrack/__init__.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* 1. create fixture for config and another with options
2. set options with default values
3. remove CONFIG_SCHEMA
* Update tests/components/seventeentrack/conftest.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update tests/components/seventeentrack/conftest.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* 1. get options from import data and default if not present
2. rename mock_config_entry_no_options -> mock_config_entry_with_default_options
* move ACCOUNT_ID to mock_seventeentrack_api.return_value.profile.account_id
* Apply suggestions from code review
* Update tests/components/seventeentrack/test_config_flow.py
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: Christopher Fenner <9592452+CFenner@users.noreply.github.com>
2024-03-11 12:47:39 +01:00
Marc Mueller
930a396712
Add empty line after module docstring [s] ( #112704 )
2024-03-08 14:33:51 +01:00
J. Nick Koston
773543b617
Ensure all data is set in seventeentrack before adding entities ( #111603 )
...
This integration would call async_add_entities before
it has set the data that the entity needed. There is
no guarantee that the entity would take long enough
to add that the data would be there
2024-02-27 08:47:31 -05:00
epenet
c37e4b870f
Move attribution to standalone attribute [r-s] ( #80520 )
...
* Move attribution to standalone attribute [r-s]
* Fix test
2022-10-18 13:33:20 +02:00
epenet
0c767bd0d3
Improve entity type hints [s] (part 1/2) ( #77881 )
2022-09-06 13:35:14 +02:00
Franck Nijhof
69cc6ab5f1
Clean up accessing entity_registry.async_get_registry helper via hass ( #72005 )
2022-05-17 16:40:45 +02:00
Regev Brody
6176bb954c
fix: 17track package summary status is not updated when there are no more packages in that summary ( #64421 )
...
* 17track package status is not updated when there are no packages
* 17track package status is not updated when there are no packages
* 17track package status is not updated when there are no packages
2022-01-19 17:35:20 +02:00
Erik Montnemery
a672dc3437
Import persistent notification (part 4) ( #63901 )
2022-01-11 16:57:40 +01:00
epenet
595e8a327c
Add sensor setup type hints [s] ( #63310 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 19:06:08 +01:00
Marc Mueller
d5116810d4
Use assignment expressions 08 ( #57788 )
2021-10-17 20:02:42 +02:00
Yuval Aboulafia
db7d2de8bc
Use _attr in 17track ( #57187 )
...
* use _attr
* fix name
* attributes
* set fixed attr before init
* access parameters directly
2021-10-08 10:03:09 +03:00
Erik Montnemery
e558b3463e
Move temperature conversions to sensor base class (6/8) ( #54476 )
...
* Move temperature conversions to entity base class (6/8)
* Fix tests
2021-08-12 17:40:55 +02:00
Marc Mueller
8e2b5b36b5
Bump pyupgrade to 2.12.0 ( #48943 )
2021-04-09 09:58:27 -07:00
Erik Montnemery
64bc9a8196
Migrate integrations r-s to extend SensorEntity ( #48215 )
2021-03-22 19:54:14 +01:00
Andreas Brett
993261e7f5
Add "timestamp" attribute to seventeentrack ( #47960 )
...
* bump py17track to 3.0.1
* Make aiohttp ClientSession optional
as introduced in py17track v3.0.0 (https://github.com/bachya/py17track/releases/tag/3.0.0 )
* Update manifest.json
* add new attribute timestamp
introduced in 3.1.0
* Update requirements.txt
* Update requirements_all.txt
* Update requirements.txt
* Update requirements_test_all.txt
* Update sensor.py
* Update sensor.py
* Update manifest.json
* provide timezone configuration
user config to pre-define timezone of package status timestamps
* Update requirements_all.txt
* Update requirements_test_all.txt
* linting
* use hass.config.time_zone
* Update sensor.py
* Update test_sensor.py
* Update test_sensor.py
* black
* Update manifest.json
* adjust changes to session param
* added test against latest dev branch
* make isort happy
* make black happy
* make flake8 happy
* make black happy
* bump to 3.2.1
* 3.2.1
* Update typing 15
2021-03-19 12:34:06 +01:00
Erik Montnemery
14ff6d4d1f
Update integrations p-s to override extra_state_attributes() ( #47759 )
2021-03-11 21:23:20 +01:00
tkdrob
3baeed3684
Clean up constants ( #47323 )
2021-03-05 19:08:04 +01:00
Paulus Schoutsen
9e07910ab0
Mark entities as unavailable when they are removed but are still registered ( #45528 )
...
* Mark entities as unavailable when they are removed but are still registered
* Add sync_entity_lifecycle to collection helper
* Remove debug print
* Lint
* Fix tests
* Fix tests
* Update zha
* Update zone
* Fix tests
* Update hyperion
* Update rfxtrx
* Fix tests
* Pass force_remove=True from integrations
Co-authored-by: Erik <erik@montnemery.com>
2021-02-08 10:45:46 +01:00
Olivér Falvai
c439d25ac3
Add location to summary sensor attributes ( #43641 )
2020-11-25 13:41:56 -07:00
J. Nick Koston
f50976a0b3
Switch to asyncio.wait for slow update warning implementation ( #41184 )
2020-10-05 15:28:15 +02:00
Ole-Martin Heggen
2d70df9776
Fix url in seventeentrack delivered notification ( #38646 )
2020-08-07 14:14:42 -06:00
Franck Nijhof
e8a0abd107
String formatting improvements ( #33635 )
...
* String formatting improvements
* Found another one
2020-04-04 18:21:14 +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
Ville Skyttä
fa4fa30461
Various string cleanups ( #30435 )
...
* Remove some unnecessary string concatenations
* Replace some simple str.formats with f-strings
* Replace some string concatenations with f-strings
2020-01-03 14:47:06 +01:00
springstan
22225cea4d
Move imports to top for seventeentrack ( #29264 )
...
* Move imports to top for seventeentrack
* Updated patch target path in test_sensor.py
2019-12-01 10:19:17 -07:00
Franck Nijhof
445c741b30
Use literal string interpolation in integrations R-S (f-strings) ( #26392 )
2019-09-03 21:14:39 +02:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Thomas Germain
4936e55979
Improve seventeentrack ( #25454 )
...
* Code improvement + tests
* review
* review + moving to pytest test function
* move test to async
* remove code comment
2019-07-28 19:55:46 +02:00
tgermain
60ca8b95a4
Fix issue #24495 ( #25199 )
2019-07-17 13:05:26 -06:00
Aaron Bach
6a7bd19a5a
Remove archived 17track packages from the entity registry ( #23049 )
...
* Remove archived 17track packages from the entity registry
* Fix incorrect __init__.py
* Member comments
* Member comments
* Fix too many params
* Member comments
* Member comments
2019-04-19 09:14:14 +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
Aaron Bach
7d46ed0bf9
Remove expired 17track.net packages from entity registry ( #23001 )
...
* Remove expired 17track.net packages from entity registry
* Reverse order
2019-04-12 08:03:14 -06: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
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