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:
parent
b566d55998
commit
9d192643ee
15 changed files with 304 additions and 147 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue