init home-assistant

This commit is contained in:
2026-11-19 15:15:32 -05:00
parent 2e81d9d300
commit feec6ef9fb
19230 changed files with 3335526 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
"""The test for the version binary sensor platform."""
from __future__ import annotations
from homeassistant.components.version.const import DEFAULT_CONFIGURATION
from homeassistant.core import HomeAssistant
from .common import setup_version_integration
async def test_version_binary_sensor_local_source(hass: HomeAssistant) -> None:
"""Test the Version binary sensor with local source."""
await setup_version_integration(hass)
state = hass.states.get("binary_sensor.local_installation_update_available")
assert not state
async def test_version_binary_sensor(hass: HomeAssistant) -> None:
"""Test the Version binary sensor."""
await setup_version_integration(hass, {**DEFAULT_CONFIGURATION, "source": "pypi"})
state = hass.states.get("binary_sensor.local_installation_update_available")
assert state