diff --git a/aiocloudweather/conversion.py b/aiocloudweather/conversion.py index ab5d93e..2d3eebb 100644 --- a/aiocloudweather/conversion.py +++ b/aiocloudweather/conversion.py @@ -39,12 +39,6 @@ def in_to_mm(length: float) -> float: return length * 25.4 -@unit(UnitOfIrradiance.WATTS_PER_SQUARE_METER) -def lux_to_wm2(lux: float) -> float: - """Convert lux to watts per square meter (W/m²).""" - return lux * 0.0079 - - @unit(UnitOfSpeed.METERS_PER_SECOND) def mph_to_ms(speed: float) -> float: """Convert miles per hour (mph) to meters per second (m/s).""" @@ -68,13 +62,6 @@ def mm_to_in(length: float) -> float: """Convert millimeters (mm) to inches.""" return length * 0.0393701 - -@unit(LIGHT_LUX) -def wm2_to_lux(lux: float) -> float: - """Convert watts per square meter (W/m²) to lux.""" - return lux * 127 - - @unit(UnitOfSpeed.MILES_PER_HOUR) def ms_to_mph(speed: float) -> float: """Convert meters per second (m/s) to miles per hour (mph).""" diff --git a/aiocloudweather/station.py b/aiocloudweather/station.py index dfef900..9d4fb40 100644 --- a/aiocloudweather/station.py +++ b/aiocloudweather/station.py @@ -154,7 +154,6 @@ class WeathercloudRawSensor: UnitOfPressure.INHG: inhg_to_hpa, UnitOfTemperature.FAHRENHEIT: fahrenheit_to_celsius, UnitOfPrecipitationDepth.INCHES: in_to_mm, - LIGHT_LUX: lux_to_wm2, UnitOfSpeed.MILES_PER_HOUR: mph_to_ms, } @@ -162,7 +161,6 @@ class WeathercloudRawSensor: UnitOfPressure.HPA: hpa_to_inhg, UnitOfTemperature.CELSIUS: celsius_to_fahrenheit, UnitOfPrecipitationDepth.MILLIMETERS: mm_to_in, - UnitOfIrradiance.WATTS_PER_SQUARE_METER: wm2_to_lux, UnitOfSpeed.METERS_PER_SECOND: ms_to_mph, }