Skip to content

Commit

Permalink
Merge pull request #11048 from btsimonh/MI32bugfix
Browse files Browse the repository at this point in the history
Mi32bugfix
  • Loading branch information
arendst authored Feb 19, 2021
2 parents e56c8b1 + ec25cfb commit cdafd51
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tasmota/xsns_62_esp32_mi_ble.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1941,9 +1941,21 @@ void MI32EverySecond(bool restart){
MI32TimeoutSensors();

if (MI32.option.MQTTType == 0){
// show tas style sensor MQTT
MI32ShowSomeSensors();
} else {
}

if (MI32.option.MQTTType == 1
#ifdef USE_HOME_ASSISTANT
||
Settings.flag.hass_discovery
#endif
) {
// these two share a counter
// discovery only sent if hass_discovery
MI32DiscoveryOneMISensor();
// show independent style sensor MQTT
// note - if !MQTTType, then this is IN ADDITION to 'normal'
MI32ShowOneMISensor();
}

Expand Down

0 comments on commit cdafd51

Please sign in to comment.