Fix incorrect type hint in async_setup_scanner (#63833)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
0030f114f9
commit
0ac9b62f97
7 changed files with 15 additions and 9 deletions
|
@ -45,7 +45,7 @@ async def async_setup_scanner(
|
|||
config: ConfigType,
|
||||
async_see: Callable[..., Awaitable[None]],
|
||||
discovery_info: DiscoveryInfoType | None = None,
|
||||
) -> None:
|
||||
) -> bool:
|
||||
"""Set up the MQTT JSON tracker."""
|
||||
devices = config[CONF_DEVICES]
|
||||
qos = config[CONF_QOS]
|
||||
|
@ -73,6 +73,8 @@ async def async_setup_scanner(
|
|||
|
||||
await mqtt.async_subscribe(hass, topic, async_message_received, qos)
|
||||
|
||||
return True
|
||||
|
||||
|
||||
def _parse_see_args(dev_id, data):
|
||||
"""Parse the payload location parameters, into the format see expects."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue