mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-15 09:58:45 -07:00
Improve tests
This commit is contained in:
parent
4858e06060
commit
d910c05e6e
@ -1207,12 +1207,10 @@ export default class HomeAssistant extends Extension {
|
||||
payload.temperature_state_topic = stateTopic;
|
||||
}
|
||||
|
||||
/* istanbul ignore next */
|
||||
if (payload.temperature_low_state_topic) {
|
||||
payload.temperature_low_state_topic = stateTopic;
|
||||
}
|
||||
|
||||
/* istanbul ignore next */
|
||||
if (payload.temperature_high_state_topic) {
|
||||
payload.temperature_high_state_topic = stateTopic;
|
||||
}
|
||||
@ -1222,24 +1220,20 @@ export default class HomeAssistant extends Extension {
|
||||
`${baseTopic}/${commandTopicPrefix}set/${payload.temperature_command_topic}`;
|
||||
}
|
||||
|
||||
/* istanbul ignore next */
|
||||
if (payload.temperature_low_command_topic) {
|
||||
payload.temperature_low_command_topic =
|
||||
`${baseTopic}/${commandTopicPrefix}set/${payload.temperature_low_command_topic}`;
|
||||
}
|
||||
|
||||
/* istanbul ignore next */
|
||||
if (payload.temperature_high_command_topic) {
|
||||
payload.temperature_high_command_topic =
|
||||
`${baseTopic}/${commandTopicPrefix}set/${payload.temperature_high_command_topic}`;
|
||||
}
|
||||
|
||||
/* istanbul ignore next */
|
||||
if (payload.fan_mode_state_topic) {
|
||||
payload.fan_mode_state_topic = stateTopic;
|
||||
}
|
||||
|
||||
/* istanbul ignore next */
|
||||
if (payload.fan_mode_command_topic) {
|
||||
payload.fan_mode_command_topic = `${baseTopic}/${commandTopicPrefix}set/fan_mode`;
|
||||
}
|
||||
|
@ -188,7 +188,7 @@ const devices = {
|
||||
'MKS-CM-W5': new Device('Router', '0x90fd9ffffe4b64ac', 33901, 4476, [new Endpoint(1, [0,4,3,5,10,258,13,19,6,1,1030,8,768,1027,1029,1026], [0,3,4,6,8,5], '0x90fd9ffffe4b64aa', [], {})], true, "Mains (single phase)", "qnazj70", false),
|
||||
'GL-S-007ZS': new Device('Router', '0x0017880104e45526', 6540,4151, [new Endpoint(1, [0], [], '0x0017880104e45526')], true, "Mains (single phase)", 'GL-S-007ZS'),
|
||||
'U202DST600ZB': new Device('Router', '0x0017880104e43559', 6540,4151, [new Endpoint(10, [0, 6], [], '0x0017880104e43559'), new Endpoint(11, [0, 6], [], '0x0017880104e43559')], true, "Mains (single phase)", 'U202DST600ZB'),
|
||||
'3157100': new Device('Router', '0x0017880104e44559', 6542,4151, [new Endpoint(1, [], [], '0x0017880104e44559')], true, "Mains (single phase)", '3157100'),
|
||||
'3157100': new Device('Router', '0x0017880104e44559', 6542,4151, [new Endpoint(1, [], [], '0x0017880104e44559')], true, "Mains (single phase)", '3157100', false, 'Centralite'),
|
||||
'J1': new Device('Router', '0x0017880104a44559', 6543,4151, [new Endpoint(1, [], [], '0x0017880104a44559')], true, "Mains (single phase)", 'J1 (5502)'),
|
||||
'TS0601_thermostat': TS0601_thermostat,
|
||||
'external_converter_device': new Device('EndDevice', '0x0017880104e45511', 1114, 'external', [new Endpoint(1, [], [], '0x0017880104e45511')], false, null, 'external_converter_device' ),
|
||||
|
Loading…
Reference in New Issue
Block a user