Skip to content

Commit

Permalink
Make the keys mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
puddly committed Sep 20, 2024
1 parent 9141e09 commit 1ace648
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions zigpy/quirks/v2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,8 @@ def _validate(self) -> None:
and self.translation_key is None
and self.fallback_name is None
):
_LOGGER.warning(
"Entity %s must have a `translation_key` (preferable) or `fallback_name`",
self,
raise ValueError(
f"Entity {self} must have a `translation_key` (preferable) or `fallback_name`"
)


Expand Down

0 comments on commit 1ace648

Please # to comment.