Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Remove 'control' supported feature until HA 2024.8 #4

Merged
merged 1 commit into from
Jul 25, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions custom_components/anthropic/conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ def __init__(self, entry: AnthropicConfigEntry) -> None:
model="Claude",
entry_type=dr.DeviceEntryType.SERVICE,
)
if self.entry.options.get(CONF_LLM_HASS_API):
self._attr_supported_features = (
conversation.ConversationEntityFeature.CONTROL
)

@property
def supported_languages(self) -> list[str] | Literal["*"]:
Expand Down
5 changes: 0 additions & 5 deletions tests/test_conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ async def test_entity(
"""Test entity properties."""
state = hass.states.get("conversation.claude")
assert state
assert state.attributes["supported_features"] == 0

hass.config_entries.async_update_entry(
mock_config_entry,
Expand All @@ -47,10 +46,6 @@ async def test_entity(

state = hass.states.get("conversation.claude")
assert state
assert (
state.attributes["supported_features"]
== conversation.ConversationEntityFeature.CONTROL
)


async def test_error_handling(
Expand Down
Loading