diff --git a/homeassistant/components/alarm_control_panel/trigger.py b/homeassistant/components/alarm_control_panel/trigger.py index 19302900823..d970ea9ec6b 100644 --- a/homeassistant/components/alarm_control_panel/trigger.py +++ b/homeassistant/components/alarm_control_panel/trigger.py @@ -14,7 +14,7 @@ from .const import DOMAIN, AlarmControlPanelEntityFeature, AlarmControlPanelStat def supports_feature(hass: HomeAssistant, entity_id: str, features: int) -> bool: - """Get the device class of an entity or UNDEFINED if not found.""" + """Test if an entity supports the specified features.""" try: return bool(get_supported_features(hass, entity_id) & features) except HomeAssistantError: @@ -39,7 +39,7 @@ class EntityStateTriggerRequiredFeatures(EntityTargetStateTriggerBase): def make_entity_state_trigger_required_features( domain: str, to_state: str, required_features: int ) -> type[EntityTargetStateTriggerBase]: - """Create an entity state trigger class.""" + """Create an entity state trigger class with required feature filtering.""" class CustomTrigger(EntityStateTriggerRequiredFeatures): """Trigger for entity state changes."""