Skip to content

Commit

Permalink
Remove options as property of SelectEntityDescription (#109)
Browse files Browse the repository at this point in the history
* Remove options attribute from Select description

* Update HACS definition

* Update requirements

* Update pytest

* Trigger CI

* Update dependencies
  • Loading branch information
iMicknl authored Oct 31, 2022
1 parent 784431d commit 7a0abb6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 16 deletions.
12 changes: 1 addition & 11 deletions custom_components/nest_protect/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,7 @@


@dataclass
class NestProtectSelectDescriptionMixin:
"""Define an entity description mixin for select entities."""

options: list[str]
# select_option: Callable[[str, Callable[..., Awaitable[None]]], Awaitable[None]]


@dataclass
class NestProtectSelectDescription(
SelectEntityDescription, NestProtectSelectDescriptionMixin
):
class NestProtectSelectDescription(SelectEntityDescription):
"""Class to describe an Nest Protect sensor."""


Expand Down
6 changes: 4 additions & 2 deletions hacs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
"name": "Nest Protect",
"domains": [
"binary_sensor",
"sensor"
"sensor",
"select",
"switch"
],
"homeassistant": "2022.6",
"homeassistant": "2022.11",
"render_readme": "true",
"iot_class": "Cloud Polling"
}
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
homeassistant==2022.6.6
homeassistant==2022.11.0b3
pre-commit
5 changes: 3 additions & 2 deletions requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
-r requirements_dev.txt

pytest==7.1.1
pytest-homeassistant-custom-component==0.9.16 # 2022.6.6
pytest==7.1.3
pytest-socket==0.5.1
pytest-homeassistant-custom-component==0.12.14 # 2022.11.0b3
pytest-timeout==2.1.0

0 comments on commit 7a0abb6

Please sign in to comment.