Does the light.switch platform allow for "unavailable" mqtt state?

Hey guys,

First off that’s a very well targeted implementation, and thank you for that. (I had dozens of gpio switches turned into template lights)

On the other hand, i would only use it on GPIO switches as on the mqtt switches, with the availability_topic: "tele/sonoff_xxx/LWT" i could check if everything was running ok.

Is there a way to keep this functionality with the new light platform?

Thanks,
k.