Shai Ungar
adda02b6b1
Add service to 17track to archive package ( #123493 )
...
* Add service archive package
* Update homeassistant/components/seventeentrack/icons.json
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* CR fix in tests
* CR fix in services.py
* string references
* extract constant keys
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-09-04 21:56:11 +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
Shai Ungar
1f4585cc9e
Add service to 17track to get packages ( #116067 )
...
* Add service to 17track
* Add service to 17track
change to select selector
add snapshot test
* Add service to 17track
use strings for the selector
* Add service to 17track
fix test
2024-04-24 14:29:13 +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
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