disable availbity topic for tmSensr

This commit is contained in:
openshwprojects
2023-05-01 23:26:39 +02:00
parent c5cb537b02
commit 03845f4dd5

View File

@ -230,7 +230,7 @@ HassDeviceInfo* hass_init_device_info(ENTITY_TYPE type, int index, char* payload
flagavty = CFG_HasFlag(OBK_FLAG_NOT_PUBLISH_AVAILABILITY_SENSOR);
// if door sensor is running, then deep sleep will be invoked mostly, then we dont want availability
#ifndef OBK_DISABLE_ALL_DRIVERS
if (DRV_IsRunning("DoorSensor") == false)
if (DRV_IsRunning("DoorSensor") == false && DRV_IsRunning("tmSensor") == false)
#endif
{
if (!isSensor || !flagavty) {