From 373916bead86e7dc8c332fb32911432036a16887 Mon Sep 17 00:00:00 2001 From: Stefan Allius Date: Sun, 16 Jun 2024 22:47:45 +0200 Subject: [PATCH] add healthy method --- app/src/gen3/connection_g3.py | 4 ++++ app/src/gen3plus/connection_g3p.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/app/src/gen3/connection_g3.py b/app/src/gen3/connection_g3.py index 7730069..7e7b96d 100644 --- a/app/src/gen3/connection_g3.py +++ b/app/src/gen3/connection_g3.py @@ -31,6 +31,10 @@ class ConnectionG3(AsyncStream, Talent): async def async_publ_mqtt(self) -> None: pass + def healthy(self) -> bool: + logger.debug('ConnectionG3 healthy()') + return AsyncStream.healthy(self) + ''' Our private methods ''' diff --git a/app/src/gen3plus/connection_g3p.py b/app/src/gen3plus/connection_g3p.py index ecc5625..352ba5e 100644 --- a/app/src/gen3plus/connection_g3p.py +++ b/app/src/gen3plus/connection_g3p.py @@ -31,6 +31,10 @@ class ConnectionG3P(AsyncStream, SolarmanV5): async def async_publ_mqtt(self) -> None: pass + def healthy(self) -> bool: + logger.debug('ConnectionG3P healthy()') + return AsyncStream.healthy(self) + ''' Our private methods '''