Improve mikrotik error handling (#106244)
* improve mikrotik error handling * switch to debug * fix mock command arguments * add recommendations --------- Co-authored-by: Marco98 <Marco98@users.noreply.github.com>
This commit is contained in:
parent
0af850cbb6
commit
d450a7f57e
3 changed files with 31 additions and 14 deletions
|
@ -52,7 +52,9 @@ def mock_device_registry_devices(hass: HomeAssistant) -> None:
|
|||
)
|
||||
|
||||
|
||||
def mock_command(self, cmd: str, params: dict[str, Any] | None = None) -> Any:
|
||||
def mock_command(
|
||||
self, cmd: str, params: dict[str, Any] | None = None, suppress_errors: bool = False
|
||||
) -> Any:
|
||||
"""Mock the Mikrotik command method."""
|
||||
if cmd == mikrotik.const.MIKROTIK_SERVICES[mikrotik.const.IS_WIRELESS]:
|
||||
return True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue