1
mirror of https://github.com/home-assistant/core synced 2024-10-01 05:30:36 +02:00

Improve yamaha tests (#105077)

This commit is contained in:
Erik Montnemery 2023-12-05 18:17:56 +01:00 committed by GitHub
parent 5b55c7da5f
commit 428c184c75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,7 @@ CONFIG = {"media_player": {"platform": "yamaha", "host": "127.0.0.1"}}
def _create_zone_mock(name, url):
zone = MagicMock()
zone.ctrl_url = url
zone.surround_programs = []
zone.zone = name
return zone