Skip to content

Commit

Permalink
Fix issue where some MQTT servers didn't like url params stopping use…
Browse files Browse the repository at this point in the history
…rs from logging in.
  • Loading branch information
mikey0000 committed Aug 28, 2024
1 parent 369cce6 commit 4b47ab9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/mammotion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Unload a config entry."""
unload_ok = await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
if unload_ok:
if entry.runtime_data.manager.mqtt.is_connected:
if entry.runtime_data.manager.mqtt and entry.runtime_data.manager.mqtt.is_connected:
await hass.async_add_executor_job(entry.runtime_data.manager.mqtt.disconnect)
return unload_ok
2 changes: 1 addition & 1 deletion custom_components/mammotion/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
],
"iot_class": "local_push",
"requirements": [
"pymammotion==0.2.17"
"pymammotion==0.2.18"
]
}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ readme = "README.md"

[tool.poetry.dependencies]
python = "~3.12.0"
pymammotion = "0.2.17"
pymammotion = "0.2.18"
homeassistant = "^2024.5.5"


Expand Down

0 comments on commit 4b47ab9

Please sign in to comment.