fix after rebase

This commit is contained in:
escoand
2019-11-06 23:01:41 +01:00
parent d664008651
commit 88783d29f1
2 changed files with 5 additions and 4 deletions

View File

@@ -160,11 +160,12 @@ class SamsungTVDevice(MediaPlayerDevice):
):
"""Initialize the Samsung device."""
# Save a reference to the imported classes
self._name = name
self._mac = mac
self._broadcast = broadcast
self._uuid = uuid
self._manufacturer = manufacturer
self._model = model
# Assume that the TV is not muted
self._muted = False
# Assume that the TV is in Play mode

View File

@@ -43,9 +43,9 @@ REMOTE_CALL = {
@pytest.fixture(name="remote")
def remote_fixture():
"""Patch the samsungctl Remote."""
with patch("samsungctl.Remote") as remote, patch(
"homeassistant.components.samsungtv.config_flow.socket"
):
with patch("homeassistant.components.samsungtv.config_flow.socket"), patch(
"homeassistant.components.samsungtv.media_player.SamsungRemote"
) as remote, patch("homeassistant.components.samsungtv.media_player.socket"):
yield remote