File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
homeassistant/components/snoo Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments