소스 검색

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,
 )