From 8abfc047f9aebead500adc8a8eaf34dc208bb8e7 Mon Sep 17 00:00:00 2001 From: Nathan Spencer Date: Mon, 24 Nov 2025 01:30:17 +0000 Subject: [PATCH] Fix number typing and docstring --- custom_components/oasis_mini/number.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/oasis_mini/number.py b/custom_components/oasis_mini/number.py index e9b3343..66fe93d 100644 --- a/custom_components/oasis_mini/number.py +++ b/custom_components/oasis_mini/number.py @@ -76,12 +76,12 @@ class OasisDeviceNumberEntity(OasisDeviceEntity, NumberEntity): """Oasis device number entity.""" @property - def native_value(self) -> str | None: + def native_value(self) -> float | None: """ Get the current value of the number entity from the underlying device. Returns: - str | None: The current value as a string, or `None` if the device has no value. + float | None: The current value as a float, or `None` if the device has no value. """ return getattr(self.device, self.entity_description.key)