mirror of
https://github.com/home-assistant/core.git
synced 2025-05-12 09:59:20 +00:00
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()
|