Add version and hash to docker container (#167)

* Add version and git hash to image
* Add version reporting to HA via api
This commit is contained in:
Florian Asche authored and GitHub committed 2026-02-21 20:38:46 +01:00
1 parent 76308cc209
commit 7de510cb1f
13 files changed
+123 -12

No files matched your search

+6 -6
View File
@@ -291,15 +291,15 @@ class VoiceSatelliteProtocol(APIServer):
elif isinstance(msg, VoiceAssistantTimerEventResponse):
self.handle_timer_event(VoiceAssistantTimerEventType(msg.event_type), msg)
elif isinstance(msg, DeviceInfoRequest):
# Compute dynamic device name
base_name = re.sub(r"[\s-]+", "-", self.state.name.lower()).strip("-")
mac_no_colon = self.state.mac_address.replace(":", "").lower()
mac_last6 = mac_no_colon[-6:]
device_name = f"{base_name}-{mac_last6}"
_LOGGER.debug("Device info request")
yield DeviceInfoResponse(
uses_password=False,
name=device_name,
name=self.state.name,
friendly_name=self.state.friendly_name,
project_name="Open Home Foundation.Linux Voice Assistant",
project_version=self.state.version,
esphome_version=self.state.esphome_version,
mac_address=self.state.mac_address,
manufacturer="Open Home Foundation",
model="Linux Voice Assistant",