Shai Ungar
c4762f3ff4
Fix issue when timestamp is None ( #130133 )
...
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2024-11-08 16:15:28 +01:00
Shai Ungar
dce51b02c8
Fix timestamp isoformat in seventeentrack ( #127052 )
...
fix timestamp isoformat
2024-09-30 11:45:54 +02:00
Shai Ungar
97ab595e20
Fix repair when integration does not exist ( #127050 )
2024-09-30 09:17:44 +02:00
Jan-Philipp Benecke
590b3d0fd4
Remove deprecated YAML import from seventeentrack ( #125852 )
2024-09-13 12:58:51 +02:00
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
Erik Montnemery
1a2d013c97
Update icons.json to new service schema part 3 ( #124770 )
2024-08-28 13:48:01 +02:00
Shai Ungar
057f31132b
Bump pyseventeentrack to 1.0.1 ( #124211 )
2024-08-19 12:02:34 +02:00
Shai Ungar
978ee918cb
Use new 17track api library ( #121910 )
2024-07-19 17:09:50 +02:00
Franck Nijhof
a9bf12f102
Rename Services to Actions in translation strings ( #121777 )
2024-07-15 21:19:25 +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
Shai Ungar
03aba7e7ab
Address late seventeentrack review ( #116792 )
2024-06-22 10:46:31 +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
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
Joost Lekkerkerker
0214511b38
Make config flow imports consistent ( #114962 )
...
* Make config flow imports consistent
* Fix
2024-04-05 21:38:11 +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
Erik Montnemery
23fa500406
Sort manifests 9 ( #87030 )
2023-02-08 20:22:30 +01: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
J. Nick Koston
5b755b74fb
Add loggers to integration manifest.json ( #65083 )
2022-01-28 13:37:53 -08: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
Aaron Bach
9af8d59a7a
Bump py17track to 2021.12.2 ( #61166 )
2021-12-07 11:29:54 -08:00
Aaron Bach
a053c0a106
Bump py17track to 2021.12.1 ( #60762 )
2021-12-01 18:52:33 +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
Aaron Bach
a448b72ff9
Remove bachya as 17track.net codeowner ( #52262 )
...
* Remove bachya as 17track.net codeowner
* Cleanup
2021-06-28 17:41:02 -06:00
Franck Nijhof
055cdc64c0
Add support for IoT class in manifest ( #46935 )
2021-04-15 10:21:38 +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
Paulus Schoutsen
f1d3c0d19b
Remove unused manifest fields ( #33595 )
2020-04-03 12:58:19 -07:00
Franck Nijhof
22760a0bee
Correct names in manifests (Q-S) ( #30543 )
2020-01-07 08:19:44 -05:00
Franck Nijhof
a84741392b
Format all manifests with prettier ( #30521 )
2020-01-06 21:28:23 +01: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