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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cover.py to fix for HA 2023.9.0 #18

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion custom_components/remootio/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ async def async_setup_entry(
class RemootioCover(cover.CoverEntity):
"""Cover entity which represents an Remootio device controlled garage door or gate."""

_attr_name = None
_remootio_client: RemootioClient
_attr_has_entity_name = True
_attr_should_poll = False
_attr_supported_features = cover.SUPPORT_OPEN | cover.SUPPORT_CLOSE
_attr_supported_features = cover.CoverEntityFeature.OPEN | cover.CoverEntityFeature.CLOSE
def __init__(
self,
unique_id: str,
Expand All @@ -70,6 +71,7 @@ def __init__(
self._attr_device_info = DeviceInfo(
name=name,
manufacturer="Assemblabs Ltd",
identifiers={(DOMAIN, self._attr_unique_id)},
)

async def async_added_to_hass(self) -> None:
Expand Down
7 changes: 4 additions & 3 deletions custom_components/remootio/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
"integration_type": "device",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/remootio",
"version": "1.4",
"requirements": ["aioremootio==1.0.0a17"],
"version": "1.4.3",
"requirements": ["aioremootio @ git+https://github.com/yarafie/aioremootio.git"],
"issue_tracker": "https://github.com/yarafie/remootio/issues",
"ssdp": [],
"homekit": {},
"dependencies": [],
"codeowners": ["@ivgg-me"],
"codeowners": ["@yarafie","@sam43434","@ivgg-me"],
"iot_class": "local_push"
}