mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-10 10:56:28 +00:00
Use PEP 695 type alias for ConfigEntry (#2179)
This commit is contained in:
parent
1f235a8d53
commit
8e4a632d61
@ -15,7 +15,7 @@ An example could look like this:
|
|||||||
# <integration>/__init__.py
|
# <integration>/__init__.py
|
||||||
|
|
||||||
# The type alias needs to be suffixed with 'ConfigEntry'
|
# The type alias needs to be suffixed with 'ConfigEntry'
|
||||||
MyConfigEntry = ConfigEntry["MyData"]
|
type MyConfigEntry = ConfigEntry[MyData]
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class MyData:
|
class MyData:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user