mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Add additionalAttributes to Alexa discovery payload (#41370)
This commit is contained in:
parent
281456b252
commit
ac87c0eea2
@ -33,6 +33,7 @@ from homeassistant.const import (
|
|||||||
CONF_NAME,
|
CONF_NAME,
|
||||||
TEMP_CELSIUS,
|
TEMP_CELSIUS,
|
||||||
TEMP_FAHRENHEIT,
|
TEMP_FAHRENHEIT,
|
||||||
|
__version__,
|
||||||
)
|
)
|
||||||
from homeassistant.core import HomeAssistant, State, callback
|
from homeassistant.core import HomeAssistant, State, callback
|
||||||
from homeassistant.helpers import network
|
from homeassistant.helpers import network
|
||||||
@ -286,6 +287,12 @@ class AlexaEntity:
|
|||||||
"friendlyName": self.friendly_name(),
|
"friendlyName": self.friendly_name(),
|
||||||
"description": self.description(),
|
"description": self.description(),
|
||||||
"manufacturerName": "Home Assistant",
|
"manufacturerName": "Home Assistant",
|
||||||
|
"additionalAttributes": {
|
||||||
|
"manufacturer": "Home Assistant",
|
||||||
|
"model": self.entity.domain,
|
||||||
|
"softwareVersion": __version__,
|
||||||
|
"customIdentifier": self.entity_id,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
locale = self.config.locale
|
locale = self.config.locale
|
||||||
|
Loading…
x
Reference in New Issue
Block a user