From d90f0297723720d72d685eba06daee735f29c32a Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Fri, 17 Jun 2022 12:14:11 +0200 Subject: [PATCH] Finish migrating demo NumberEntity to native_value (#73581) --- homeassistant/components/demo/number.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/demo/number.py b/homeassistant/components/demo/number.py index 7a9baf045e5d..02ab1a2a9891 100644 --- a/homeassistant/components/demo/number.py +++ b/homeassistant/components/demo/number.py @@ -99,11 +99,11 @@ class DemoNumber(NumberEntity): self._attr_mode = mode if native_min_value is not None: - self._attr_min_value = native_min_value + self._attr_native_min_value = native_min_value if native_max_value is not None: - self._attr_max_value = native_max_value + self._attr_native_max_value = native_max_value if native_step is not None: - self._attr_step = native_step + self._attr_native_step = native_step self._attr_device_info = DeviceInfo( identifiers={