Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
raman325 committed Sep 16, 2023
1 parent 405fce3 commit 0ba775e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions zwave_js_server/model/controller/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@
ProvisioningEntry,
QRProvisioningInformation,
)
from .rebuild_routes import RebuildRoutesOptions, RebuildRoutesStatus
from .rebuild_routes import (
RebuildRoutesOptions,
RebuildRoutesOptionsDataType,
RebuildRoutesStatus,
)
from .statistics import (
ControllerLifelineRoutes,
ControllerStatistics,
Expand Down Expand Up @@ -477,7 +481,9 @@ async def async_begin_rebuilding_routes(
self, options: RebuildRoutesOptions | None = None
) -> bool:
"""Send beginRebuildingRoutes command to Controller."""
msg = {"command": "controller.begin_rebuilding_routes"}
msg: dict[str, str | RebuildRoutesOptionsDataType] = {
"command": "controller.begin_rebuilding_routes"
}
if options:
msg["options"] = options.to_dict()
data = await self.client.async_send_command(msg, require_schema=32)
Expand Down

0 comments on commit 0ba775e

Please sign in to comment.