From abe06108b4d60d2789027f7d4ffb35aabbcd762f Mon Sep 17 00:00:00 2001 From: Marcio Granzotto Rodrigues Date: Sat, 11 Dec 2021 21:51:40 -0300 Subject: [PATCH] Fix crash on HA 2021.12.0 --- custom_components/smartthings/number.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/smartthings/number.py b/custom_components/smartthings/number.py index 9e81a86..9f93d39 100644 --- a/custom_components/smartthings/number.py +++ b/custom_components/smartthings/number.py @@ -9,7 +9,7 @@ from pysmartthings import Attribute, Capability from pysmartthings.device import DeviceEntity -from homeassistant.components.number import NumberEntity, MODE_AUTO +from homeassistant.components.number import NumberEntity, NumberMode from . import SmartThingsEntity from .const import DATA_BROKERS, DOMAIN @@ -34,7 +34,7 @@ 0, 100, 1, - MODE_AUTO, + NumberMode.AUTO, ) ], }