mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Improve type hints in zwave_me number entity (#76469)
This commit is contained in:
parent
bb0038319d
commit
9555df88c8
@ -40,7 +40,7 @@ class ZWaveMeNumber(ZWaveMeEntity, NumberEntity):
|
||||
"""Representation of a ZWaveMe Multilevel Switch."""
|
||||
|
||||
@property
|
||||
def native_value(self):
|
||||
def native_value(self) -> float:
|
||||
"""Return the unit of measurement."""
|
||||
if self.device.level == 99: # Scale max value
|
||||
return 100
|
||||
|
Loading…
x
Reference in New Issue
Block a user