Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable watchdog #172

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions tests/test_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -866,11 +866,3 @@ async def test_routes_updated(app, device):
assert router2.radio_details.call_count == 0

app._api._at_command.assert_awaited_once_with("DB")


async def test_watchdog(app):
"""Test watchdog feed method."""
app._api._at_command = mock.AsyncMock(return_value="OK")
await app._watchdog_feed()

assert app._api._at_command.mock_calls == [mock.call("VR")]
3 changes: 0 additions & 3 deletions zigpy_xbee/zigbee/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ def __init__(self, config: dict[str, Any]):
self._api: zigpy_xbee.api.XBee | None = None
self.topology.add_listener(self)

async def _watchdog_feed(self):
await self._api._at_command("VR")

async def disconnect(self):
"""Shutdown application."""
if self._api:
Expand Down