Bump mozart-api to 4.1.1.116.3 (#131269)

This commit is contained in:
Markus Jacobsen 2024-11-22 20:07:11 +01:00 committed by GitHub
parent e690c1026c
commit ecb945e08c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 13 additions and 10 deletions

View File

@ -6,6 +6,6 @@
"documentation": "https://www.home-assistant.io/integrations/bang_olufsen",
"integration_type": "device",
"iot_class": "local_push",
"requirements": ["mozart-api==4.1.1.116.0"],
"requirements": ["mozart-api==4.1.1.116.3"],
"zeroconf": ["_bangolufsen._tcp.local."]
}

View File

@ -15,7 +15,7 @@ from mozart_api.models import (
VolumeState,
WebsocketNotificationTag,
)
from mozart_api.mozart_client import MozartClient
from mozart_api.mozart_client import BaseWebSocketResponse, MozartClient
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
@ -202,12 +202,15 @@ class BangOlufsenWebsocket(BangOlufsenBase):
sw_version=software_status.software_version,
)
def on_all_notifications_raw(self, notification: dict) -> None:
def on_all_notifications_raw(self, notification: BaseWebSocketResponse) -> None:
"""Receive all notifications."""
# Add the device_id and serial_number to the notification
notification["device_id"] = self._device.id
notification["serial_number"] = int(self._unique_id)
_LOGGER.debug("%s", notification)
self.hass.bus.async_fire(BANG_OLUFSEN_WEBSOCKET_EVENT, notification)
self.hass.bus.async_fire(
BANG_OLUFSEN_WEBSOCKET_EVENT,
{
"device_id": self._device.id,
"serial_number": int(self._unique_id),
**notification,
},
)

View File

@ -1403,7 +1403,7 @@ motionblindsble==0.1.2
motioneye-client==0.3.14
# homeassistant.components.bang_olufsen
mozart-api==4.1.1.116.0
mozart-api==4.1.1.116.3
# homeassistant.components.mullvad
mullvad-api==1.0.0

View File

@ -1172,7 +1172,7 @@ motionblindsble==0.1.2
motioneye-client==0.3.14
# homeassistant.components.bang_olufsen
mozart-api==4.1.1.116.0
mozart-api==4.1.1.116.3
# homeassistant.components.mullvad
mullvad-api==1.0.0