From b3bc40718d2210b277e2bf83a994b25083ca1c18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc?= <1536036+zoic21@users.noreply.github.com> Date: Mon, 5 Aug 2024 14:10:17 +0200 Subject: [PATCH] Update netatmo.class.php --- core/class/netatmo.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/class/netatmo.class.php b/core/class/netatmo.class.php index dfe0984..73fe3cd 100644 --- a/core/class/netatmo.class.php +++ b/core/class/netatmo.class.php @@ -341,6 +341,12 @@ public function applyModuleConfiguration() { } public function getImage() { + if(method_exists($this,'getCustomImage')){ + $customImage = $this->getCustomImage(); + if($customImage !== null){ + return $customImage; + } + } if (file_exists(__DIR__ . '/../config/devices/' . $this->getConfiguration('device') . '.png')) { return 'plugins/netatmo/core/config/devices/' . $this->getConfiguration('device') . '.png'; }