1
0
mirror of https://github.com/natekspencer/hacs-oasis_mini.git synced 2025-12-06 18:44:14 -05:00

Fix number typing and docstring

This commit is contained in:
Nathan Spencer
2025-11-24 01:30:17 +00:00
parent 0df118d18d
commit 8abfc047f9

View File

@@ -76,12 +76,12 @@ class OasisDeviceNumberEntity(OasisDeviceEntity, NumberEntity):
"""Oasis device number entity.""" """Oasis device number entity."""
@property @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. Get the current value of the number entity from the underlying device.
Returns: 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) return getattr(self.device, self.entity_description.key)