mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-02 01:51:38 +00:00
Check if state is not null. #2450
This commit is contained in:
@@ -167,7 +167,7 @@ class EntityPublish extends BaseExtension {
|
||||
if (topic.type === 'set' && converter && converter.convertSet) {
|
||||
logger.debug(`Publishing '${topic.type}' '${key}' to '${entity.name}'`);
|
||||
const result = await converter.convertSet(actualTarget, key, value, meta);
|
||||
if (result && result.hasOwnProperty('state')) {
|
||||
if (result && result.state) {
|
||||
const msg = result.state;
|
||||
|
||||
if (postfix) {
|
||||
|
||||
Reference in New Issue
Block a user