Skip to content

Commit

Permalink
✨ Support sensibilisation level
Browse files Browse the repository at this point in the history
  • Loading branch information
kamaradclimber committed Aug 16, 2024
1 parent 5d0b518 commit 9402ab7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/vigieau/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,8 @@ def any_restriction_match(matcher):
return "Erreur: consulter l'arreté"
if any_restriction_match("Pas de restriction sauf arrêté spécifique."):
return "Autorisé sauf exception"
if any_restriction_match("Sensibiliser"):
return "Sensibilisation"
if len(self._restrictions) == 1:
return self._restrictions[0]
_LOGGER.warn(f"Restrictions are hard to interpret: {self._restrictions}")
Expand Down

0 comments on commit 9402ab7

Please sign in to comment.