Add the Home Assistant version as a Sentry release (#31065)
This helps make it easier to identify which version of Home Assistant first introduces a error.
This commit is contained in:
parent
463d949ee0
commit
96dba7b91f
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,7 @@ import voluptuous as vol
|
|||
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import __version__
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import config_validation as cv
|
||||
|
||||
|
@ -51,6 +52,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
|
|||
dsn=conf.get(CONF_DSN),
|
||||
environment=conf.get(CONF_ENVIRONMENT),
|
||||
integrations=[sentry_logging],
|
||||
release=f"homeassistant-{__version__}",
|
||||
)
|
||||
|
||||
return True
|
||||
|
|
Loading…
Add table
Reference in a new issue