Fix spelling of RS-232 in Denon RS-232 integration (#170298)

This commit is contained in:
Paulus Schoutsen
2026-05-11 07:30:16 +02:00
committed by GitHub
parent 94bf13c6bb
commit f96afda959
11 changed files with 15 additions and 15 deletions
@@ -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 @@ PLATFORMS = [Platform.MEDIA_PLAYER]
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)
@@ -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
@@ -1,4 +1,4 @@
"""Constants for the Denon RS232 integration."""
"""Constants for the Denon RS-232 integration."""
import logging
@@ -1,6 +1,6 @@
{
"domain": "denon_rs232",
"name": "Denon RS232",
"name": "Denon RS-232",
"codeowners": ["@balloob"],
"config_flow": true,
"dependencies": ["usb"],
@@ -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
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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
@@ -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
+1 -1
View File
@@ -1,4 +1,4 @@
"""Tests for the Denon RS232 integration init."""
"""Tests for the Denon RS-232 integration init."""
from unittest.mock import AsyncMock
@@ -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