Minor improvement of frame helper (#101387)

* Minor improvement of frame helper

* Add new custom integration for testing

* Make IntegrationFrame kw_only
This commit is contained in:
Erik Montnemery 2023-10-04 21:43:00 +02:00 committed by GitHub
parent c495d607d8
commit 7e39acda37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 64 additions and 10 deletions

View file

@ -0,0 +1,8 @@
"""An integration which calls helpers.frame.get_integration_frame."""
from homeassistant.helpers import frame
def call_get_integration_frame() -> frame.IntegrationFrame:
"""Call get_integration_frame."""
return frame.get_integration_frame()

View file

@ -0,0 +1,9 @@
{
"domain": "test_integration_frame",
"name": "Test Integration Frame",
"documentation": "http://example.com",
"requirements": [],
"dependencies": [],
"codeowners": [],
"version": "1.2.3"
}