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
1 changed files with 1 additions and 0 deletions

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