Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to maxcube-api-0.4.1 #47910

Merged
merged 1 commit into from Mar 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions homeassistant/components/maxcube/__init__.py
Expand Up @@ -4,7 +4,6 @@
from threading import Lock
import time

from maxcube.connection import MaxCubeConnection
from maxcube.cube import MaxCube
import voluptuous as vol

Expand Down Expand Up @@ -60,7 +59,7 @@ def setup(hass, config):
scan_interval = gateway[CONF_SCAN_INTERVAL].total_seconds()

try:
cube = MaxCube(MaxCubeConnection(host, port))
cube = MaxCube(host, port)
hass.data[DATA_KEY][host] = MaxCubeHandle(cube, scan_interval)
except timeout as ex:
_LOGGER.error("Unable to connect to Max!Cube gateway: %s", str(ex))
Expand All @@ -86,6 +85,7 @@ class MaxCubeHandle:
def __init__(self, cube, scan_interval):
"""Initialize the Cube Handle."""
self.cube = cube
self.cube.use_persistent_connection = scan_interval <= 300 # seconds
self.scan_interval = scan_interval
self.mutex = Lock()
self._updatets = time.monotonic()
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/maxcube/manifest.json
Expand Up @@ -2,6 +2,6 @@
"domain": "maxcube",
"name": "eQ-3 MAX!",
"documentation": "https://www.home-assistant.io/integrations/maxcube",
"requirements": ["maxcube-api==0.3.0"],
"requirements": ["maxcube-api==0.4.1"],
"codeowners": []
}
2 changes: 1 addition & 1 deletion requirements_all.txt
Expand Up @@ -911,7 +911,7 @@ magicseaweed==1.0.3
matrix-client==0.3.2

# homeassistant.components.maxcube
maxcube-api==0.3.0
maxcube-api==0.4.1

# homeassistant.components.mythicbeastsdns
mbddns==0.1.2
Expand Down