mirror of
https://github.com/home-assistant/core.git
synced 2026-05-15 04:51:20 +01:00
890d3f4af4
* add-abstract-template-entity-base-class * review 1 changes
18 lines
551 B
Python
18 lines
551 B
Python
"""Test abstract template entity."""
|
|
|
|
import pytest
|
|
|
|
from homeassistant.components.template import entity as abstract_entity
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
|
|
async def test_template_entity_not_implemented(hass: HomeAssistant) -> None:
|
|
"""Test abstract template entity raises not implemented error."""
|
|
|
|
entity = abstract_entity.AbstractTemplateEntity(None)
|
|
with pytest.raises(NotImplementedError):
|
|
_ = entity.referenced_blueprint
|
|
|
|
with pytest.raises(NotImplementedError):
|
|
entity._render_script_variables()
|