-
- Downloads
Add Config Flow to LG Netcast (#104913)
* Add Config Flow to lg_netcast
* Add YAML import to Lg Netcast ConfigFlow
Deprecates YAML config support
* Add LG Netcast Device triggers for turn_on action
* Add myself to LG Netcast codeowners
* Remove unnecessary user_input validation check.
* Move netcast discovery logic to the backend
* Use FlowResultType Enum for tests
* Mock pylgnetcast.query_device_info instead of _send_to_tv
* Refactor lg_netcast client discovery, simplify YAML import
* Simplify CONF_NAME to use friendly name
Fix: Use Friendly name for Name
* Expose model to DeviceInfo
* Add test for testing YAML import when not TV not online
* Switch to entity_name for LGTVDevice
* Add data_description to host field in user step
* Wrap try only around _get_session_id
* Send regular request for access_token to ensure it display on the TV
* Stop displaying access token when flow is aborted
* Remove config_flow only consts and minor fixups
* Simplify media_player logic & raise new migration issue
* Add async_unload_entry
* Create issues when import config flow fails, and raise only a single yaml deprecation issue type
* Remove single use trigger helpers
* Bump issue deprecation breakage version
* Lint
---------
Co-authored-by:
Erik Montnemery <erik@montnemery.com>
Showing
- CODEOWNERS 2 additions, 1 deletionCODEOWNERS
- homeassistant/components/lg_netcast/__init__.py 32 additions, 0 deletionshomeassistant/components/lg_netcast/__init__.py
- homeassistant/components/lg_netcast/config_flow.py 217 additions, 0 deletionshomeassistant/components/lg_netcast/config_flow.py
- homeassistant/components/lg_netcast/const.py 6 additions, 0 deletionshomeassistant/components/lg_netcast/const.py
- homeassistant/components/lg_netcast/device_trigger.py 88 additions, 0 deletionshomeassistant/components/lg_netcast/device_trigger.py
- homeassistant/components/lg_netcast/helpers.py 59 additions, 0 deletionshomeassistant/components/lg_netcast/helpers.py
- homeassistant/components/lg_netcast/manifest.json 5 additions, 2 deletionshomeassistant/components/lg_netcast/manifest.json
- homeassistant/components/lg_netcast/media_player.py 68 additions, 24 deletionshomeassistant/components/lg_netcast/media_player.py
- homeassistant/components/lg_netcast/strings.json 46 additions, 0 deletionshomeassistant/components/lg_netcast/strings.json
- homeassistant/components/lg_netcast/trigger.py 49 additions, 0 deletionshomeassistant/components/lg_netcast/trigger.py
- homeassistant/components/lg_netcast/triggers/__init__.py 1 addition, 0 deletionshomeassistant/components/lg_netcast/triggers/__init__.py
- homeassistant/components/lg_netcast/triggers/turn_on.py 115 additions, 0 deletionshomeassistant/components/lg_netcast/triggers/turn_on.py
- homeassistant/generated/config_flows.py 1 addition, 0 deletionshomeassistant/generated/config_flows.py
- homeassistant/generated/integrations.json 2 additions, 2 deletionshomeassistant/generated/integrations.json
- requirements_all.txt 1 addition, 1 deletionrequirements_all.txt
- requirements_test_all.txt 3 additions, 0 deletionsrequirements_test_all.txt
- tests/components/lg_netcast/__init__.py 116 additions, 0 deletionstests/components/lg_netcast/__init__.py
- tests/components/lg_netcast/conftest.py 11 additions, 0 deletionstests/components/lg_netcast/conftest.py
- tests/components/lg_netcast/test_config_flow.py 252 additions, 0 deletionstests/components/lg_netcast/test_config_flow.py
- tests/components/lg_netcast/test_device_trigger.py 148 additions, 0 deletionstests/components/lg_netcast/test_device_trigger.py
Loading
Please register or sign in to comment