Skip to content

Commit

Permalink
Merge pull request #54 from andrey-git/fix-capa
Browse files Browse the repository at this point in the history
Fix capabilities
  • Loading branch information
gjohansson-ST authored Aug 5, 2023
2 parents 82088ac + 3f27275 commit 8cd278f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# pysensibo
asyncio-friendly python API for Sensibo (https://sensibo.com). Requires Python 3.11+
asyncio-friendly python API for Sensibo (https://sensibo.com). Supported on Python 3.11+

Package has been made specifically for [Home Assistant](https://www.home-assistant.io/)

Expand Down
4 changes: 2 additions & 2 deletions pysensibo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ async def async_get_devices_data(self) -> SensiboData:
if light_mode:
light_mode = light_mode.lower()
available = dev["connectionStatus"].get("isAlive", True)
capabilities: dict[str, Any] = dev.get("remoteCapabilities", {})
hvac_modes = list(capabilities.get("modes", []))
capabilities: dict[str, Any] = dev.get("remoteCapabilities", {}) or {}
hvac_modes = list(capabilities.get("modes", {}) or {})
if not hvac_modes:
LOGGER.warning(
"Device %s not correctly registered with Sensibo cloud. Skipping device",
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
print(find_packages())
setup(
name="pysensibo",
version="1.0.32",
version="1.0.33",
description="asyncio-friendly python API for Sensibo",
long_description="asyncio-friendly python API for Sensibo"
"(https://sensibo.com). Requires Python 3.11+",
"(https://sensibo.com). Supported on Python 3.11+",
url="https://github.com/andrey-git/pysensibo",
license="MIT",
classifiers=[
Expand Down

0 comments on commit 8cd278f

Please sign in to comment.