From 89d0b434bcf0f0bd42eb055b575da77449de38bf Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Sun, 2 Oct 2022 06:24:25 +0200 Subject: [PATCH] Use explicit return value in azure_event_hub (#79315) * Use explicit return value in azure_event_hub * Use abstractmethod --- homeassistant/components/azure_event_hub/client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/azure_event_hub/client.py b/homeassistant/components/azure_event_hub/client.py index 27a4eabf535..90880a92b64 100644 --- a/homeassistant/components/azure_event_hub/client.py +++ b/homeassistant/components/azure_event_hub/client.py @@ -1,6 +1,7 @@ """File for Azure Event Hub models.""" from __future__ import annotations +from abc import ABC, abstractmethod from dataclasses import dataclass import logging @@ -12,12 +13,13 @@ _LOGGER = logging.getLogger(__name__) @dataclass -class AzureEventHubClient: +class AzureEventHubClient(ABC): """Class for the Azure Event Hub client. Use from_input to initialize.""" event_hub_instance_name: str @property + @abstractmethod def client(self) -> EventHubProducerClient: """Return the client."""