瀏覽代碼

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 天之前
父節點
當前提交
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,
 )