Add additionalAttributes to Alexa discovery payload (#41370)

This commit is contained in:
Paulus Schoutsen 2020-10-07 09:32:12 +02:00 committed by Franck Nijhof
parent 281456b252
commit ac87c0eea2
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -33,6 +33,7 @@ from homeassistant.const import (
CONF_NAME,
TEMP_CELSIUS,
TEMP_FAHRENHEIT,
__version__,
)
from homeassistant.core import HomeAssistant, State, callback
from homeassistant.helpers import network
@ -286,6 +287,12 @@ class AlexaEntity:
"friendlyName": self.friendly_name(),
"description": self.description(),
"manufacturerName": "Home Assistant",
"additionalAttributes": {
"manufacturer": "Home Assistant",
"model": self.entity.domain,
"softwareVersion": __version__,
"customIdentifier": self.entity_id,
},
}
locale = self.config.locale