core/tests/components/template/test_entity.py

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()