Bump Roborock to 0.29.2 (#95549)

* init work

* fix tests
This commit is contained in:
Luke 2023-06-29 13:13:37 -04:00 committed by GitHub
parent 9cace8e4bd
commit 3474f46b09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 95 additions and 170 deletions

View file

@ -2,6 +2,8 @@
from typing import Any
from roborock.api import AttributeCache
from roborock.command_cache import CacheableAttribute
from roborock.containers import Status
from roborock.exceptions import RoborockException
from roborock.local_api import RoborockLocalClient
@ -27,6 +29,15 @@ class RoborockEntity(Entity):
self._attr_device_info = device_info
self._api = api
@property
def api(self) -> RoborockLocalClient:
"""Returns the api."""
return self._api
def get_cache(self, attribute: CacheableAttribute) -> AttributeCache:
"""Get an item from the api cache."""
return self._api.cache.get(attribute)
async def send(
self, command: RoborockCommand, params: dict[str, Any] | list[Any] | None = None
) -> dict: