Skip to content

Commit

Permalink
Enforce RemoteEntityFeature (#82463)
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet committed Nov 22, 2022
1 parent 6f05a74 commit 0cb3ec1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/remote/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ class RemoteEntity(ToggleEntity):
entity_description: RemoteEntityDescription
_attr_activity_list: list[str] | None = None
_attr_current_activity: str | None = None
_attr_supported_features: RemoteEntityFeature | int = 0
_attr_supported_features: RemoteEntityFeature = RemoteEntityFeature(0)

@property
def supported_features(self) -> RemoteEntityFeature | int:
def supported_features(self) -> RemoteEntityFeature:
"""Flag supported features."""
return self._attr_supported_features

Expand Down
2 changes: 1 addition & 1 deletion pylint/plugins/hass_enforce_type_hints.py
Original file line number Diff line number Diff line change
Expand Up @@ -2061,7 +2061,7 @@ class ClassTypeHintMatch:
),
TypeHintMatch(
function_name="supported_features",
return_type=["RemoteEntityFeature", "int"],
return_type="RemoteEntityFeature",
),
TypeHintMatch(
function_name="send_command",
Expand Down

0 comments on commit 0cb3ec1

Please sign in to comment.