diff --git a/custom_components/bhyve/__init__.py b/custom_components/bhyve/__init__.py index 57d2d5f..60437d1 100644 --- a/custom_components/bhyve/__init__.py +++ b/custom_components/bhyve/__init__.py @@ -301,8 +301,8 @@ def update(device_id, data): self._available = True if self._should_handle_event(event): _LOGGER.info( - "Callback update: {} - {} - {}".format( - self.name, self._device_id, str(data)[:160] + "Message received: {} - {} - {}".format( + self.name, self._device_id, str(data) ) ) self._ws_unprocessed_events.append(data) diff --git a/custom_components/bhyve/pybhyve/websocket.py b/custom_components/bhyve/pybhyve/websocket.py index c3e385c..d87c28a 100644 --- a/custom_components/bhyve/pybhyve/websocket.py +++ b/custom_components/bhyve/pybhyve/websocket.py @@ -101,7 +101,7 @@ async def running(self): msg = await self._ws.receive() self._reset_heartbeat() - _LOGGER.debug("msg received {}".format(str(msg)[:80])) + _LOGGER.debug("msg received {}".format(str(msg))) if msg.type == WSMsgType.TEXT: ensure_future(self._async_callback(json.loads(msg.data))) diff --git a/custom_components/bhyve/switch.py b/custom_components/bhyve/switch.py index 92f363e..2a54598 100644 --- a/custom_components/bhyve/switch.py +++ b/custom_components/bhyve/switch.py @@ -260,7 +260,7 @@ def update(device_id, data): """Update the state.""" _LOGGER.info( "Program update: {} - {} - {}".format( - self.name, self._program_id, str(data)[:160] + self.name, self._program_id, str(data) ) ) event = data.get("event")