Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Commit 321d313

Browse files
committed
fix correct data type
1 parent 4b212ab commit 321d313

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

deebotozmo/commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,15 +228,15 @@ def __init__(self, *, map_id: int, piece_index: int) -> None:
228228
class GetMapSet(Command):
229229
"""Get map set command."""
230230

231-
def __init__(self, map_id: int) -> None:
231+
def __init__(self, map_id: str) -> None:
232232
super().__init__("getMapSet", {"mid": map_id, "type": "ar"})
233233

234234

235235
class GetMapSubSet(Command):
236236
"""Get map subset command."""
237237

238238
def __init__(
239-
self, *, map_id: int, map_set_id: int, map_type: str, map_subset_id: str
239+
self, *, map_id: str, map_set_id: str, map_type: str, map_subset_id: str
240240
) -> None:
241241
super().__init__(
242242
"getMapSubSet",

deebotozmo/map.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ async def handle(
159159

160160
async def _handle_cached_map_info(self, event_data: dict, requested: bool) -> None:
161161
try:
162-
map_id: Optional[int] = None
162+
map_id: Optional[str] = None
163163
for map_status in event_data["info"]:
164164
if map_status["using"] == 1:
165165
map_id = map_status["mid"]
166-
_LOGGER.debug("[_handle_cached_map] Using Map: %d", map_id)
166+
_LOGGER.debug("[_handle_cached_map] Using Map: %s", map_id)
167167
break
168168

169169
if requested and map_id is not None:

0 commit comments

Comments
 (0)