Move PluggableAction to trigger helpers (#81900)

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Joakim Plate <elupus@ecce.se>
Co-authored-by: Shay Levy <levyshay1@gmail.com>
This commit is contained in:
epenet 2022-11-22 11:35:18 +01:00 committed by GitHub
parent b566d55998
commit 9d192643ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 304 additions and 147 deletions

View file

@ -31,6 +31,10 @@ def mock_tv():
tv.notify_change_supported = False
tv.pairing_type = None
tv.powerstate = None
tv.source_id = None
tv.ambilight_current_configuration = None
tv.ambilight_styles = {}
tv.ambilight_cached = {}
with patch(
"homeassistant.components.philips_js.config_flow.PhilipsTV", return_value=tv
@ -42,7 +46,7 @@ def mock_tv():
async def mock_config_entry(hass):
"""Get standard player."""
config_entry = MockConfigEntry(
domain=DOMAIN, data=MOCK_CONFIG, title=MOCK_NAME, unique_id="ABCDEFGHIJKLF"
domain=DOMAIN, data=MOCK_CONFIG, title=MOCK_NAME, unique_id=MOCK_SERIAL_NO
)
config_entry.add_to_hass(hass)
return config_entry