Skip to content

Commit

Permalink
fix!(mqtt): Comply with new home assistant 2023.8 naming requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Aug 20, 2023
1 parent 9acc263 commit 9d0fed1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/lib/mqtt/homeassistant/HassController.js
Expand Up @@ -80,7 +80,7 @@ class HassController {
model: this.robot.getModelName(),
name: this.friendlyName,
identifiers: [this.identifier],
sw_version: Tools.GET_VALETUDO_VERSION() + " (Valetudo)",
sw_version: `Valetudo ${Tools.GET_VALETUDO_VERSION()}`,
configuration_url: `http://${Tools.GET_ZEROCONF_HOSTNAME()}`
};
}
Expand Down
Expand Up @@ -22,7 +22,7 @@ class VacuumHassComponent extends HassComponent {

getAutoconf() {
const result = {
name: this.hass.friendlyName,
name: "Robot",
object_id: this.hass.objectId,
schema: "state",
supported_features: [
Expand Down
2 changes: 1 addition & 1 deletion backend/lib/utils/ValetudoHelper.js
Expand Up @@ -35,7 +35,7 @@ class ValetudoHelper {
if (this.hasFriendlyName()) {
return valetudoConfig.customizations.friendlyName;
} else {
return `${this.robot.getModelName()} ${Tools.GET_HUMAN_READABLE_SYSTEM_ID()}`;
return `Valetudo ${this.robot.getModelName()} ${Tools.GET_HUMAN_READABLE_SYSTEM_ID()}`;
}
}

Expand Down

0 comments on commit 9d0fed1

Please sign in to comment.