diff --git a/homeassistant/components/samsungtv/media_player.py b/homeassistant/components/samsungtv/media_player.py index e824a41b36a..e5f3608387f 100644 --- a/homeassistant/components/samsungtv/media_player.py +++ b/homeassistant/components/samsungtv/media_player.py @@ -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 diff --git a/tests/components/samsungtv/test_init.py b/tests/components/samsungtv/test_init.py index 34cdac50e6e..3f40e1257cd 100644 --- a/tests/components/samsungtv/test_init.py +++ b/tests/components/samsungtv/test_init.py @@ -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