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:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user