From bd57f459297280f1c505987d3eed978bca3d934e Mon Sep 17 00:00:00 2001 From: kds69 <75844627+kds69@users.noreply.github.com> Date: Tue, 10 Oct 2023 22:05:19 +0200 Subject: [PATCH] chore: Fix cosmetic in homeassistant.ts (#19239) * Update homeassistant.ts * Update homeassistant.ts - remove double bracket in condition No idea if this is what is causing code to be ignored in certain circumstances, but anyway this is cleansing code --------- Co-authored-by: Koen Kanters --- lib/extension/homeassistant.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/extension/homeassistant.ts b/lib/extension/homeassistant.ts index 6a9f7e332..929d0b358 100644 --- a/lib/extension/homeassistant.ts +++ b/lib/extension/homeassistant.ts @@ -902,7 +902,7 @@ export default class HomeAssistant extends Extension { * Note: currently both sensor and select are discovered, this is to avoid * breaking changes for sensors already existing in HA (legacy). */ - if ((firstExpose.access & ACCESS_SET)) { + if (firstExpose.access & ACCESS_SET) { discoveryEntries.push({ type: 'select', object_id: firstExpose.property,