Skip to content

Commit 1270617

Browse files
authored
Change Snoo to use MQTT instead of PubNub (home-assistant#150570)
1 parent ed39b18 commit 1270617

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

homeassistant/components/snoo/coordinator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __init__(
4040

4141
async def setup(self) -> None:
4242
"""Perform setup needed on every coordintaor creation."""
43-
await self.snoo.subscribe(self.device, self.async_set_updated_data)
43+
self.snoo.start_subscribe(self.device, self.async_set_updated_data)
4444
# After we subscribe - get the status so that we have something to start with.
4545
# We only need to do this once. The device will auto update otherwise.
4646
await self.snoo.get_status(self.device)

tests/components/snoo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def find_update_callback(
4848
mock: AsyncMock, serial_number: str
4949
) -> Callable[[SnooData], Awaitable[None]]:
5050
"""Find the update callback for a specific identifier."""
51-
for call in mock.subscribe.call_args_list:
51+
for call in mock.start_subscribe.call_args_list:
5252
if call[0][0].serialNumber == serial_number:
5353
return call[0][1]
5454
pytest.fail(f"Callback for identifier {serial_number} not found")

0 commit comments

Comments
 (0)