Restrict Version Disclosure to Authenticated Requests in Home Assistant (#107458)

This commit is contained in:
Mikail Tunç
2024-01-12 08:34:18 +00:00
committed by GitHub
parent bef596d0dd
commit 46a06bc8cd

View File

@@ -42,7 +42,7 @@ def auth_ok_message() -> dict[str, str]:
def auth_required_message() -> dict[str, str]:
"""Return an auth_required message."""
return {"type": TYPE_AUTH_REQUIRED, "ha_version": __version__}
return {"type": TYPE_AUTH_REQUIRED}
def auth_invalid_message(message: str) -> dict[str, str]: