From 0e3c1dc0311e3fdd90b74f0edabf3bcf2c902a8b Mon Sep 17 00:00:00 2001 From: evoblicec <56120188+evoblicec@users.noreply.github.com> Date: Tue, 31 Mar 2020 00:05:18 +0200 Subject: [PATCH] =?UTF-8?q?Add=20new=20mapped=20weather=20condition=20clas?= =?UTF-8?q?ses=20to=20M=C3=A9t=C3=A9o=20France=20(#33450)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update Meteo_France Weather constants Updating Meteo_France integration with more weather "condition" returned by the web service. Adding: - "Nuit claire" (note the lower 'c') mapped to "clear-night" - "Brume" mapped to "fog" * Black formatting update --- homeassistant/components/meteo_france/const.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/meteo_france/const.py b/homeassistant/components/meteo_france/const.py index b7647f5d97b..2edbf980f36 100644 --- a/homeassistant/components/meteo_france/const.py +++ b/homeassistant/components/meteo_france/const.py @@ -83,9 +83,14 @@ SENSOR_TYPES = { } CONDITION_CLASSES = { - "clear-night": ["Nuit Claire"], + "clear-night": ["Nuit Claire", "Nuit claire"], "cloudy": ["Très nuageux"], - "fog": ["Brume ou bancs de brouillard", "Brouillard", "Brouillard givrant"], + "fog": [ + "Brume ou bancs de brouillard", + "Brume", + "Brouillard", + "Brouillard givrant", + ], "hail": ["Risque de grêle"], "lightning": ["Risque d'orages", "Orages"], "lightning-rainy": ["Pluie orageuses", "Pluies orageuses", "Averses orageuses"],