Fix entity typo (#75767)

pull/75771/head
uvjustin 2022-07-26 22:27:16 +08:00 committed by GitHub
parent 5cb4bbd906
commit 9ad273a59f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -15,7 +15,7 @@ from .const import DOMAIN
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Set up Radio Browser from a config entry.
This integration doesn't set up any enitites, as it provides a media source
This integration doesn't set up any entities, as it provides a media source
only.
"""
session = async_get_clientsession(hass)

View File

@ -987,7 +987,7 @@ async def test_set_tilt_templated_and_attributes(
"set_position_topic": "set-position-topic",
"set_position_template": "{{position-1}}",
"tilt_command_template": "{"
'"enitity_id": "{{ entity_id }}",'
'"entity_id": "{{ entity_id }}",'
'"value": {{ value }},'
'"tilt_position": {{ tilt_position }}'
"}",
@ -1009,7 +1009,7 @@ async def test_set_tilt_templated_and_attributes(
mqtt_mock.async_publish.assert_called_once_with(
"tilt-command-topic",
'{"enitity_id": "cover.test","value": 45,"tilt_position": 45}',
'{"entity_id": "cover.test","value": 45,"tilt_position": 45}',
0,
False,
)
@ -1023,7 +1023,7 @@ async def test_set_tilt_templated_and_attributes(
)
mqtt_mock.async_publish.assert_called_once_with(
"tilt-command-topic",
'{"enitity_id": "cover.test","value": 100,"tilt_position": 100}',
'{"entity_id": "cover.test","value": 100,"tilt_position": 100}',
0,
False,
)
@ -1037,7 +1037,7 @@ async def test_set_tilt_templated_and_attributes(
)
mqtt_mock.async_publish.assert_called_once_with(
"tilt-command-topic",
'{"enitity_id": "cover.test","value": 0,"tilt_position": 0}',
'{"entity_id": "cover.test","value": 0,"tilt_position": 0}',
0,
False,
)
@ -1051,7 +1051,7 @@ async def test_set_tilt_templated_and_attributes(
)
mqtt_mock.async_publish.assert_called_once_with(
"tilt-command-topic",
'{"enitity_id": "cover.test","value": 100,"tilt_position": 100}',
'{"entity_id": "cover.test","value": 100,"tilt_position": 100}',
0,
False,
)

View File

@ -281,7 +281,7 @@ async def test_command_template_value(hass):
async def test_command_template_variables(hass, mqtt_mock_entry_with_yaml_config):
"""Test the rendering of enitity_variables."""
"""Test the rendering of entity variables."""
topic = "test/select"
fake_state = ha.State("select.test", "milk")