adjust for smartclient output
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
import * as logger from './log'
|
||||
import { mqttHandler } from './MqttDispatcher'
|
||||
import { AItem, HasStateAndFeedbackTopic, HasInTopic } from './AItem'
|
||||
import { AItem, HasStateAndFeedbackTopicAndLabelAndRoom, HasInTopic, HasStateAndFeedbackTopic } from './AItem'
|
||||
import { SwitchExport, ExportType } from './Export'
|
||||
|
||||
|
||||
export class M433SwitchItem extends AItem implements HasStateAndFeedbackTopic {
|
||||
export class M433SwitchItem extends AItem implements HasStateAndFeedbackTopicAndLabelAndRoom {
|
||||
private offCode: string
|
||||
private onCode: string
|
||||
private oldState: string|undefined
|
||||
@ -14,6 +14,14 @@ export class M433SwitchItem extends AItem implements HasStateAndFeedbackTopic {
|
||||
private stateTopic: string
|
||||
private type: string
|
||||
|
||||
getLabel() : string {
|
||||
return this.label
|
||||
}
|
||||
|
||||
getRoom() : string {
|
||||
return this.room
|
||||
}
|
||||
|
||||
getStateTopic() : string {
|
||||
return this.stateTopic
|
||||
}
|
||||
|
Reference in New Issue
Block a user