Skip to content

Commit

Permalink
feat(home-assistant): moved topics into their own domain
Browse files Browse the repository at this point in the history
As mentioned in #102, best practice is to keep topics aside from the
config one out of the homeassistant domain.
  • Loading branch information
mKeRix committed Jan 27, 2020
1 parent 072809a commit 696e24b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/integrations/home-assistant/entity-config.ts
Expand Up @@ -23,8 +23,8 @@ export abstract class EntityConfig {

this.uniqueId = slugify(_.lowerCase(`room-assistant ${component} ${id}`));
this.configTopic = `homeassistant/${this.component}/${this.uniqueId}/config`;
this.stateTopic = `homeassistant/${this.component}/${this.uniqueId}/state`;
this.jsonAttributesTopic = `homeassistant/${this.component}/${this.uniqueId}/attributes`;
this.availabilityTopic = `homeassistant/${this.component}/${this.uniqueId}/status`;
this.stateTopic = `roomassistant/${this.component}/${this.uniqueId}/state`;
this.jsonAttributesTopic = `roomassistant/${this.component}/${this.uniqueId}/attributes`;
this.availabilityTopic = `roomassistant/${this.component}/${this.uniqueId}/status`;
}
}

0 comments on commit 696e24b

Please sign in to comment.