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): def _create_zone_mock(name, url):
zone = MagicMock() zone = MagicMock()
zone.ctrl_url = url zone.ctrl_url = url
zone.surround_programs = []
zone.zone = name zone.zone = name
return zone return zone