Add url validators
This commit is contained in:
parent
4d7555957c
commit
5aa0158761
5 changed files with 92 additions and 31 deletions
|
@ -214,7 +214,7 @@ class APIStatesView(HomeAssistantView):
|
|||
class APIEntityStateView(HomeAssistantView):
|
||||
"""View to handle EntityState requests."""
|
||||
|
||||
url = "/api/states/<entity_id>"
|
||||
url = "/api/states/<entity(exist=False):entity_id>"
|
||||
name = "api:entity-state"
|
||||
|
||||
def get(self, request, entity_id):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue