From 5f559f97eb8d3cb53d7aa3b0518660dd90f7eee4 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 11 May 2026 01:00:47 +0000 Subject: [PATCH] Fix spelling of RS-232 in Denon RS-232 integration --- homeassistant/components/denon_rs232/__init__.py | 4 ++-- homeassistant/components/denon_rs232/config_flow.py | 4 ++-- homeassistant/components/denon_rs232/const.py | 2 +- homeassistant/components/denon_rs232/manifest.json | 2 +- homeassistant/components/denon_rs232/media_player.py | 6 +++--- homeassistant/generated/integrations.json | 2 +- tests/components/denon_rs232/__init__.py | 2 +- tests/components/denon_rs232/conftest.py | 2 +- tests/components/denon_rs232/test_config_flow.py | 2 +- tests/components/denon_rs232/test_init.py | 2 +- tests/components/denon_rs232/test_media_player.py | 2 +- 11 files changed, 15 insertions(+), 15 deletions(-) diff --git a/homeassistant/components/denon_rs232/__init__.py b/homeassistant/components/denon_rs232/__init__.py index 0950b902a087b0..6f1199fbcd1309 100644 --- a/homeassistant/components/denon_rs232/__init__.py +++ b/homeassistant/components/denon_rs232/__init__.py @@ -1,4 +1,4 @@ -"""The Denon RS232 integration.""" +"""The Denon RS-232 integration.""" from denon_rs232 import DenonReceiver, ReceiverState from denon_rs232.models import MODELS @@ -14,7 +14,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: DenonRS232ConfigEntry) -> bool: - """Set up Denon RS232 from a config entry.""" + """Set up Denon RS-232 from a config entry.""" port = entry.data[CONF_DEVICE] model = MODELS[entry.data[CONF_MODEL]] receiver = DenonReceiver(port, model=model) diff --git a/homeassistant/components/denon_rs232/config_flow.py b/homeassistant/components/denon_rs232/config_flow.py index 593dac3b821b62..15913dddca302c 100644 --- a/homeassistant/components/denon_rs232/config_flow.py +++ b/homeassistant/components/denon_rs232/config_flow.py @@ -1,4 +1,4 @@ -"""Config flow for the Denon RS232 integration.""" +"""Config flow for the Denon RS-232 integration.""" from typing import Any @@ -63,7 +63,7 @@ async def _async_attempt_connect(port: str, model_key: str) -> str | None: class DenonRS232ConfigFlow(ConfigFlow, domain=DOMAIN): - """Handle a config flow for Denon RS232.""" + """Handle a config flow for Denon RS-232.""" VERSION = 1 diff --git a/homeassistant/components/denon_rs232/const.py b/homeassistant/components/denon_rs232/const.py index a408bd33509f56..864998635d18c6 100644 --- a/homeassistant/components/denon_rs232/const.py +++ b/homeassistant/components/denon_rs232/const.py @@ -1,4 +1,4 @@ -"""Constants for the Denon RS232 integration.""" +"""Constants for the Denon RS-232 integration.""" import logging diff --git a/homeassistant/components/denon_rs232/manifest.json b/homeassistant/components/denon_rs232/manifest.json index 63d177120c64c1..e50677a5f4f691 100644 --- a/homeassistant/components/denon_rs232/manifest.json +++ b/homeassistant/components/denon_rs232/manifest.json @@ -1,6 +1,6 @@ { "domain": "denon_rs232", - "name": "Denon RS232", + "name": "Denon RS-232", "codeowners": ["@balloob"], "config_flow": true, "dependencies": ["usb"], diff --git a/homeassistant/components/denon_rs232/media_player.py b/homeassistant/components/denon_rs232/media_player.py index 5174de45eb316d..4f422df00ec723 100644 --- a/homeassistant/components/denon_rs232/media_player.py +++ b/homeassistant/components/denon_rs232/media_player.py @@ -1,4 +1,4 @@ -"""Media player platform for the Denon RS232 integration.""" +"""Media player platform for the Denon RS-232 integration.""" from typing import Literal, cast @@ -77,7 +77,7 @@ async def async_setup_entry( config_entry: DenonRS232ConfigEntry, async_add_entities: AddConfigEntryEntitiesCallback, ) -> None: - """Set up the Denon RS232 media player.""" + """Set up the Denon RS-232 media player.""" receiver = config_entry.runtime_data entities = [DenonRS232MediaPlayer(receiver, receiver.main, config_entry, "main")] @@ -94,7 +94,7 @@ async def async_setup_entry( class DenonRS232MediaPlayer(MediaPlayerEntity): - """Representation of a Denon receiver controlled over RS232.""" + """Representation of a Denon receiver controlled over RS-232.""" _attr_device_class = MediaPlayerDeviceClass.RECEIVER _attr_has_entity_name = True diff --git a/homeassistant/generated/integrations.json b/homeassistant/generated/integrations.json index 3400242cf292ec..94edfc1ccaf0b2 100644 --- a/homeassistant/generated/integrations.json +++ b/homeassistant/generated/integrations.json @@ -1339,7 +1339,7 @@ "integration_type": "hub", "config_flow": true, "iot_class": "local_push", - "name": "Denon RS232" + "name": "Denon RS-232" }, "heos": { "integration_type": "hub", diff --git a/tests/components/denon_rs232/__init__.py b/tests/components/denon_rs232/__init__.py index 3ab1bc19d83a9d..323d41186ee3f8 100644 --- a/tests/components/denon_rs232/__init__.py +++ b/tests/components/denon_rs232/__init__.py @@ -1,4 +1,4 @@ -"""Tests for the Denon RS232 integration.""" +"""Tests for the Denon RS-232 integration.""" MOCK_DEVICE = "/dev/ttyUSB0" MOCK_MODEL = "avr_3805" diff --git a/tests/components/denon_rs232/conftest.py b/tests/components/denon_rs232/conftest.py index a2771b39a6afad..59483ebaa55d49 100644 --- a/tests/components/denon_rs232/conftest.py +++ b/tests/components/denon_rs232/conftest.py @@ -1,4 +1,4 @@ -"""Test fixtures for the Denon RS232 integration.""" +"""Test fixtures for the Denon RS-232 integration.""" from typing import Literal from unittest.mock import AsyncMock, patch diff --git a/tests/components/denon_rs232/test_config_flow.py b/tests/components/denon_rs232/test_config_flow.py index 2fb82ca029b227..f2a4d028ac39af 100644 --- a/tests/components/denon_rs232/test_config_flow.py +++ b/tests/components/denon_rs232/test_config_flow.py @@ -1,4 +1,4 @@ -"""Tests for the Denon RS232 config flow.""" +"""Tests for the Denon RS-232 config flow.""" from collections.abc import Generator from unittest.mock import AsyncMock, MagicMock, patch diff --git a/tests/components/denon_rs232/test_init.py b/tests/components/denon_rs232/test_init.py index cc9a305424f712..48df34c4911560 100644 --- a/tests/components/denon_rs232/test_init.py +++ b/tests/components/denon_rs232/test_init.py @@ -1,4 +1,4 @@ -"""Tests for the Denon RS232 integration init.""" +"""Tests for the Denon RS-232 integration init.""" from unittest.mock import AsyncMock diff --git a/tests/components/denon_rs232/test_media_player.py b/tests/components/denon_rs232/test_media_player.py index ad01b018aa5c01..5485e35a1eece8 100644 --- a/tests/components/denon_rs232/test_media_player.py +++ b/tests/components/denon_rs232/test_media_player.py @@ -1,4 +1,4 @@ -"""Tests for the Denon RS232 media player platform.""" +"""Tests for the Denon RS-232 media player platform.""" from pathlib import Path from typing import Literal