Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00
Martin Hjelmare
e4590539e1
Make ps4 config flow tests robust ( #34749 )
2020-04-27 11:36:24 +02:00
Paulus Schoutsen
9a4a83cb91
Fix py38 tests ( #34658 )
2020-04-24 15:09:45 -07:00
Franck Nijhof
d7e9959442
String formatting improvements for tests (2) ( #33666 )
2020-04-05 00:33:07 +02:00
Franck Nijhof
906385172a
String formatting improvements for tests ( #33663 )
2020-04-05 00:26:08 +02:00
ktnrg45
d3ac3e48a3
Fix ps4 errors if pin begins with a 0 ( #31198 )
...
* Fix errors if pin begins with a 0
* Test PIN leading with zero
* Edit tests
2020-01-27 10:32:14 -05:00
Bas Nijholt
21816eeed4
Sort imports according to PEP8 for components starting with "P" ( #29775 )
2019-12-09 14:29:39 +01:00
ktnrg45
512ef2fce4
Change ps4 state off to state standby ( #28261 )
...
* Change state off to state standby
* update docstring
2019-11-02 10:32:37 +01:00
Pascal Vizeli
435cbb7f7e
Azure pytest parallel ( #27864 )
...
* Azure pytest parallel
* Update azure-pipelines-ci.yml
* Remove test that does nothing
2019-10-18 20:51:53 -07:00
ktnrg45
1ecc883ef4
PS4 bump to renamed dependency ( #27144 )
...
* Change to renamed dependency pyps4-2ndscreen 0.9.0
* Rename / bump to ps4 dependency to 1.0.0
* update requirements
* Rename test req
* Fix import
* Bump 1.0.1
* Fix flaky test leaving files behind
2019-10-06 14:43:34 +02:00
Ville Skyttä
9b1315d8e5
Check and fix test suite leaving files behind ( #25981 )
...
* azure: run check_dirty at end of tests
* Fix ps4 media player tests to not write to files
* .gitignore coverage.xml and test-results.xml
2019-08-21 19:50:26 +03:00
Robert Svensson
a2589f56e1
Add system options to config entries ( #25926 )
...
* Add system options to config entries
* For feedback
* Follow most of balloobs comments
* Fix balloobs comments
* Improvements
* Fix second round of Balloobs comments
* Fix third round
* Add system options to mock config entry
* Fix integration tests
* Fix the last failing tests
* Fix disabled string
* Fix failing disabled_by tests
* New tests
* Config entry WS API tests
* Fix comments
2019-08-17 21:34:11 -07:00
ktnrg45
069c1863eb
PS4 Merge async_setup_platform into async_setup_entry ( #25689 )
...
* Merge async_setup_platform into async_setup_entry
* Pass async_setup_platform
* blank line
* add test setup platform
* white space
2019-08-04 22:01:40 -06:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
ktnrg45
2e300aec5a
Add PS4 tests for media player ( #25415 )
...
* Add tests for media_player
* remove ps4/media_player.py
* Add unsubscribe method to unload
* Add_to_hass instead of add_to_manager
* Use hass.states for states
* Fix assertions
* fix tests
* Add schedule update
* Remove entity assertions
2019-07-29 09:38:17 -04:00
ktnrg45
48540fc21e
Ps4 reformat media data ( #25172 )
...
* Reformat saved media data/ fix load + save helpers
* Add url constant
* Reformat saved media data
* Add tests for media data
* Refactor
* Revert deleted lines
* Set attrs after checking for lock
* Patch load games.
* remove unneeded imports
* fix tests
* Correct condition
* Handle errors with loading games
* Correct condition
* Fix select source
* add test
* Remove unneeded vars
* line break
* cleanup loading json
* remove test
* move check for dict
* Set games to {}
2019-07-20 07:36:45 +02:00
ktnrg45
99c6c60bec
PS4 Add tests for init ( #25161 )
...
* Add some tests for init
* Remove init
* Add config entry version
* Use const for version
* Remove var
2019-07-15 08:47:47 -07:00
ktnrg45
68d3e624e6
Fix ps4 not able to use different PSN accounts ( #22799 )
...
* Remove skipping of creds step.
* Check for device added per account
* typo
* lint
* Pylint
* Fix test
* Fix test
* Typo
* Add auto location
* blank space
* Add new identifier handling + fix select source
* Add cred_timeout error
* add credential timeout error
* Fix Tests
* patch decorator
* Update test_config_flow.py
* add test
* Revert
* Rename vars
* fix tests
* Add attr location
* Bump 0.6.0
* Bump 0.6.0
* Bump 0.6.0
* Update handling exception
* Update remove method
* Update tests
* Refactoring
* Pylint
* revert
* chmod
* 0.6.1
* 0.6.1
* 0.6.1
* Remove func
* Add migration
* Version 3
* Remove redefinition
* Add format unique id
* Add format unique id
* pylint
* pylint
* 0.7.1
* 0.7.1
* 0.7.1
* Changes with media_art call
* Add library exception
* 0.7.2
* 0.7.2
* 0.7.2
* Version and entry_version update
* Revert list comprehension
* Corrected exception handling
* Update media_player.py
* Update media_player.py
* white space
2019-04-24 01:32:36 +02:00
ktnrg45
17a96c6d9b
Improve PS4 media art fetching and config flow ( #22167 )
...
* improved config flow
* Added errors, docs url
* Added errors, docs url
* Added manual config mode
* Add tests for manual/auto host input
* fix inline docs
* fix inline docs
* Changed region list
* Added deprecated region message
* removed DEFAULT_REGION
* Added close method
* Fixes
* Update const.py
* Update const.py
* Update const.py
* Update test_config_flow.py
* Added invalid pin errors
* Update strings.json
* Update strings.json
* bump pyps4 to 0.5.0
* Bump pyps4 0.5.0
* Bump pyps4 to 0.5.0
* test fixes
* pylint
* Change error reference
* remove pin messages
* remove pin messages
* Update en.json
* remove pin tests
* fix tests
* update vol
* Vol fix
* Update config_flow.py
* Add migration for v1 entry
* lint
* fixes
* typo
* fix
* Update config_flow.py
* Fix vol
* Executor job for io method.
* Update __init__.py
* blank line
* Update __init__.py
* Update tests/components/ps4/test_config_flow.py
Co-Authored-By: ktnrg45 <38207570+ktnrg45@users.noreply.github.com>
2019-03-25 08:25:15 -04:00
ktnrg45
efa5d5dfe3
Add support for multiple devices for PS4 component ( #21302 )
...
* Support multiple devices.
* Revert "Support multiple devices."
This reverts commit 3f5d4462a98da13ebb1ab1c07d341dbd7020e6cc.
* Support multiple devices
* Bump to 0.3.3
* bump 0.3.4
* Add tests for multiple devices.
* Update Requirements
* Update config_flow.py
* Update config_flow.py
* fixed typo
* Reordered functions
* Added multiple flow implementation test.
* fix
* typo
* fix tests
* bump 0.4.0
* Bump 0.4.0
* 0.4.0
* bump version
* bump version
* bump version
* Add keep alive feature with multiple devices
* bump version
* bump version
* bump version
* bump 0.4.7
* bump 0.4.7
* bump 0.4.7
* Edited tests.
* bump/pylint
* pylint
* bump/pylint
* bump/pylint
* Change to add additional entry
* Changed to multiple entries
* pylint
* Corrections to manage multiple devices.
* lint
* comments
* Removed redundant for loop
* Shorthand correction
* Remove reference to private object
* Test fix
* Revert changes. Test failure.
* Test fix
* test fix
* unindent assertions
* pylint
2019-03-05 01:48:25 +01:00
ktnrg45
72ef9670e6
Add component media player.ps4 ( #21074 )
...
* Added PS4/ __init__.py
* Create en.json
* Create config_flow.py
* Create const.py
* Create media_player.py
* Create services.yaml
* Create strings.json
* Create __init__.py
* Add test_config_flow.py/ Finished adding PS4 files
* Rewrote for loop into short-hand
* bumped pyps4 to 0.2.8
* Pass in helper()
* Rewrite func
* Fixed test
* Added import in init
* bump to 0.2.9
* bump to 0.3.0
* Removed line
* lint
* Add ps4 to flows list
* Added pyps4-homeassistant with script
* Added pyps4
* Added pypys4 to test
* removed list def
* reformatted service call dicts
* removed config from device class
* typo
* removed line
* reformatted .. format
* redefined property
* reformat load games func
* Add __init__ and media_player.py to coveragerc
* Fix for test
* remove init
* remove blank line
* remove mock_coro
* Revert "remove init"
This reverts commit b68996aa34699bf38781e153acdd597579e8131f.
* Correct permissions
* fixes
* fixes
2019-02-17 15:41:55 -05:00