Просмотр исходного кода

maint(text): HA 2026.6 is removing ATTR_MODE from text

The same constant already exists in global const.py
Most likely this will get reverted due to being an unannounced
breaking change that will affect other integrations also, but in case
it is not, the ATTR_MODE definition has existed globally for 5 years
now, so it is a safe change to make.

Issue #5163
Jason Rumney 2 дней назад
Родитель
Сommit
2f3996da51
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      custom_components/tuya_local/text.py

+ 1 - 1
custom_components/tuya_local/text.py

@@ -4,11 +4,11 @@ Setup for different kinds of Tuya text entities
 
 import logging
 
+from homeassistant.const import ATTR_MODE
 from homeassistant.components.text import TextEntity, TextMode
 from homeassistant.components.text.const import (
     ATTR_MAX,
     ATTR_MIN,
-    ATTR_MODE,
     ATTR_PATTERN,
 )