mirror of
https://github.com/home-assistant/core.git
synced 2025-08-17 11:31:39 +02:00
fix after rebase
This commit is contained in:
@@ -160,11 +160,12 @@ class SamsungTVDevice(MediaPlayerDevice):
|
|||||||
):
|
):
|
||||||
"""Initialize the Samsung device."""
|
"""Initialize the Samsung device."""
|
||||||
|
|
||||||
# Save a reference to the imported classes
|
|
||||||
self._name = name
|
self._name = name
|
||||||
self._mac = mac
|
self._mac = mac
|
||||||
self._broadcast = broadcast
|
self._broadcast = broadcast
|
||||||
self._uuid = uuid
|
self._uuid = uuid
|
||||||
|
self._manufacturer = manufacturer
|
||||||
|
self._model = model
|
||||||
# Assume that the TV is not muted
|
# Assume that the TV is not muted
|
||||||
self._muted = False
|
self._muted = False
|
||||||
# Assume that the TV is in Play mode
|
# Assume that the TV is in Play mode
|
||||||
|
@@ -43,9 +43,9 @@ REMOTE_CALL = {
|
|||||||
@pytest.fixture(name="remote")
|
@pytest.fixture(name="remote")
|
||||||
def remote_fixture():
|
def remote_fixture():
|
||||||
"""Patch the samsungctl Remote."""
|
"""Patch the samsungctl Remote."""
|
||||||
with patch("samsungctl.Remote") as remote, patch(
|
with patch("homeassistant.components.samsungtv.config_flow.socket"), patch(
|
||||||
"homeassistant.components.samsungtv.config_flow.socket"
|
"homeassistant.components.samsungtv.media_player.SamsungRemote"
|
||||||
):
|
) as remote, patch("homeassistant.components.samsungtv.media_player.socket"):
|
||||||
yield remote
|
yield remote
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user