Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Paulus Schoutsen
2026-04-17 15:21:04 -04:00
committed by GitHub
parent 07654bfe8b
commit d16939ffbe

View File

@@ -74,7 +74,8 @@ def async_get_transmitters(
An empty list means no compatible transmitters.
Raises:
HomeAssistantError: If no transmitters exist.
HomeAssistantError: If the component is not loaded or if no
transmitters exist.
"""
component = hass.data.get(DATA_COMPONENT)
if component is None:
@@ -149,9 +150,9 @@ class RadioFrequencyTransmitterEntity(RestoreEntity):
__last_command_sent: str | None = None
@property
@abstractmethod
def supported_frequency_ranges(self) -> list[tuple[int, int]]:
"""Return list of (min_hz, max_hz) tuples."""
raise NotImplementedError
@property
@final