home-assistant-ecosystem / python-luftdaten

Python API for interacting with luftdaten.info
MIT License
5 stars 9 forks source link

Only add value types if reported by the API #5

Closed cgtobi closed 5 years ago

cgtobi commented 5 years ago

The module has P1 and P2 by default, even when the sensor doesn't support it. This will only add those value types that are received by the API response.

should fix https://github.com/home-assistant/home-assistant/issues/25159