Sfoglia il codice sorgente

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 giorni fa
parent
commit
2f3996da51
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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,
 )