Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
tronikos committed Jul 27, 2024
1 parent 8f1bada commit dda10fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion custom_components/mass/intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class MassPlayMediaOnMediaPlayerHandler(intent.IntentHandler):
"""Handle PlayMediaOnMediaPlayer intents."""

intent_type = INTENT_PLAY_MEDIA_ON_MEDIA_PLAYER

def __init__(self, hass: HomeAssistant) -> None:
"""Initialize MassPlayMediaOnMediaPlayerHandler."""
self.hass = hass
Expand All @@ -53,7 +54,10 @@ def slot_schema(self) -> dict | None:
vol.Optional(TRACK_SLOT): cv.string,
vol.Optional(ALBUM_SLOT): cv.string,
}
if any(config_entry.data.get(CONF_OPENAI_AGENT_ID) for config_entry in self.hass.config_entries.async_entries(DOMAIN)):
if any(
config_entry.data.get(CONF_OPENAI_AGENT_ID)
for config_entry in self.hass.config_entries.async_entries(DOMAIN)
):
slot_schema[vol.Optional(QUERY_SLOT)] = cv.string
return slot_schema

Expand Down

0 comments on commit dda10fe

Please sign in to comment.