def is_closed(hass, entity_id=None):
 entity_id = (entity_id or ENTITY_ID_ALL_COVERS)
 return hass.states.is_state(entity_id, STATE_CLOSED)

def is_closed ( hass , entity_id = None ) : entity_id = ( entity_id or ENTITY_ID_ALL_COVERS ) return hass . states . is_state ( entity_id , STATE_CLOSED )
return if the cover is closed based on the statemachine .