Export CO2 sensor to Google Assistant

Hello all,

I have created an MQTT sensor with the device class “carbon_dioxide”. Although it works as expected with home assistant, when I expose it to Google Assistant, I get a generic “sensor” without any functionality. I even tried to use it with the new script editor for google home, but reading the currentSensorStateData results in an error.

A different temperature and humidity sensor I have works as expected.

Note that the sensorstate trait has support for carbon dioxide sensors(https://developers.home.google.com/cloud-to-cloud/traits/sensorstate), and home assistant appears to support it (https://github.com/home-assistant/core/blob/257e608c1394e7ed8d18f96be006df01bf81f3a3/homeassistant/components/google_assistant/trait.py#L2480).