From b4671f72b17161b4d48adf36f314937c6cfe8dfc Mon Sep 17 00:00:00 2001 From: Kev Date: Wed, 14 Feb 2024 14:40:00 -0500 Subject: [PATCH] Change if statement to elif --- custom_components/pirateweather/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/pirateweather/sensor.py b/custom_components/pirateweather/sensor.py index b9da5a0..88b11b0 100644 --- a/custom_components/pirateweather/sensor.py +++ b/custom_components/pirateweather/sensor.py @@ -1030,7 +1030,7 @@ def get_state(self, data): else: outState = round(state, roundingVal) - if self.type in [ + elif self.type in [ "precip_accumulation", "precip_intensity", "precip_intensity_max",