From 9ad273a59f57161ee84ac90f489ae017076f851a Mon Sep 17 00:00:00 2001 From: uvjustin <46082645+uvjustin@users.noreply.github.com> Date: Tue, 26 Jul 2022 22:27:16 +0800 Subject: [PATCH] Fix entity typo (#75767) --- homeassistant/components/radio_browser/__init__.py | 2 +- tests/components/mqtt/test_cover.py | 10 +++++----- tests/components/mqtt/test_init.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/homeassistant/components/radio_browser/__init__.py b/homeassistant/components/radio_browser/__init__.py index 89c2f220159..d93d7c48823 100644 --- a/homeassistant/components/radio_browser/__init__.py +++ b/homeassistant/components/radio_browser/__init__.py @@ -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) diff --git a/tests/components/mqtt/test_cover.py b/tests/components/mqtt/test_cover.py index 3f85d4e89b1..b1c162073ed 100644 --- a/tests/components/mqtt/test_cover.py +++ b/tests/components/mqtt/test_cover.py @@ -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, ) diff --git a/tests/components/mqtt/test_init.py b/tests/components/mqtt/test_init.py index 1f263d40fc2..fe8f483adf2 100644 --- a/tests/components/mqtt/test_init.py +++ b/tests/components/mqtt/test_init.py @@ -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")