Skip to content

Commit

Permalink
Add serial_number to bangolufsen_websocket_event
Browse files Browse the repository at this point in the history
  • Loading branch information
mj23000 committed May 22, 2023
1 parent 2446e5f commit 1df787d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion custom_components/bangolufsen/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,9 @@ def on_all_notifications_raw(self, notification: dict) -> None:

assert isinstance(self._device, DeviceEntry)

# Add the device_id to the notification
# 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(BANGOLUFSEN_WEBSOCKET_EVENT, notification)
2 changes: 1 addition & 1 deletion custom_components/bangolufsen/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"iot_class": "local_push",
"issue_tracker": "https://github.com/bang-olufsen/bangolufsen-hacs/issues",
"requirements": ["mozart-api==2.5.3.123.1"],
"version": "1.0.3",
"version": "1.0.4",
"zeroconf": ["_bangolufsen._tcp.local."]
}

0 comments on commit 1df787d

Please sign in to comment.