Skip to content

Commit 98879eb

Browse files
committed
fix issue with cancel and a few other buttons, fix removing device on removal again
1 parent a667d41 commit 98879eb

5 files changed

Lines changed: 9 additions & 17 deletions

File tree

custom_components/mammotion/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ async def async_unload_entry(hass: HomeAssistant, entry: MammotionConfigEntry) -
631631
if handle := mower.api.mower(mower.name):
632632
await handle.stop()
633633
mower.api.teardown_device_watchers(mower.name)
634-
await mower.api.remove_device(mower.name)
634+
mower.api.remove_device(mower.name)
635635
except TimeoutError:
636636
"""Do nothing as this sometimes occurs with disconnecting BLE."""
637637
return bool(unload_ok)

custom_components/mammotion/coordinator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ async def async_start_report_stream(self, duration_ms: int = 300_000) -> None:
744744

745745
async def async_get_reports(self, count: int = 5) -> None:
746746
"""Get reports from the device"""
747-
await self.manager.request_reports(self.device_name, count)
747+
await self.manager.request_reports(self.device_name, count=count)
748748

749749
async def async_ensure_fresh_state(self) -> None:
750750
"""Fire a one-shot snapshot if device state is older than 2 minutes."""
Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"domain": "mammotion",
33
"name": "Mammotion",
4-
"version": "0.5.39",
4+
"version": "0.5.40",
55
"issue_tracker": "https://github.com/mikey0000/Mammotion-HA/issues",
66
"integration_type": "device",
77
"bluetooth": [
@@ -16,19 +16,11 @@
1616
"connectable": true
1717
}
1818
],
19-
"codeowners": [
20-
"@mikey0000"
21-
],
19+
"codeowners": ["@mikey0000"],
2220
"config_flow": true,
23-
"dependencies": [
24-
"bluetooth_adapters"
25-
],
21+
"dependencies": ["bluetooth_adapters"],
2622
"documentation": "https://github.com/mikey0000/Mammotion-HA/wiki",
27-
"loggers": [
28-
"pymammotion"
29-
],
23+
"loggers": ["pymammotion"],
3024
"iot_class": "local_push",
31-
"requirements": [
32-
"pymammotion==0.7.98"
33-
]
25+
"requirements": ["pymammotion==0.7.98"]
3426
}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "mammotion-ha"
3-
version = "0.5.39"
3+
version = "0.5.40"
44
description = "Mammotion integration for HACS"
55
authors = [
66
{name = "Michael Arthur", email = "michael@jumblesoft.co.nz"},

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)