From 7220e99ac7278bbde7686a720aea3af143a1d1eb Mon Sep 17 00:00:00 2001 From: Tom van Swam Date: Mon, 18 Nov 2024 09:59:09 +0100 Subject: [PATCH 1/3] Add ports to docker compose file --- docker-compose.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-compose.yaml b/docker-compose.yaml index 5957d455..c7b2e14a 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -8,6 +8,8 @@ services: - ./ha/config:/config - ./ha/run:/etc/services.d/home-assistant/run network_mode: host + ports: + - 8123:8123 environment: - PUID=${UID} - PGID=${GID} @@ -20,6 +22,8 @@ services: image: mcr.microsoft.com/devcontainers/typescript-node:latest command: /bin/sh -c "while sleep 1000; do :; done" working_dir: /home/node/app + ports: + - 5000:5000 environment: - NODE_ENV=development - TERM="xterm-256color" From daf2b1cd3578d549fde6610ccc53babe90041cb8 Mon Sep 17 00:00:00 2001 From: Tom van Swam Date: Mon, 18 Nov 2024 09:59:56 +0100 Subject: [PATCH 2/3] Fix issue #895, correctly resolve lowercase directions for indicator usage --- src/compass-card.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/compass-card.ts b/src/compass-card.ts index 389961bc..f885a311 100644 --- a/src/compass-card.ts +++ b/src/compass-card.ts @@ -267,9 +267,8 @@ export class CompassCard extends LitElement { } private svgCircle(directionOffset: number): SVGTemplateResult { - return svg``; + return svg``; } private circleFill(): string { @@ -332,8 +331,8 @@ export class CompassCard extends LitElement { return svg` + indicatorSensor.indicator, + )}"/> @@ -437,8 +436,8 @@ export class CompassCard extends LitElement { } static getDegrees(abbrevation: string): number { - if (COMPASS_POINTS[abbrevation]) { - return COMPASS_POINTS[abbrevation]; + if (COMPASS_POINTS[abbrevation.toUpperCase()]) { + return COMPASS_POINTS[abbrevation.toUpperCase()]; } return -1; } From 1c1c6ba44ac1c3ad3ca2ceb41922874ba6072d21 Mon Sep 17 00:00:00 2001 From: Tom van Swam Date: Mon, 18 Nov 2024 10:00:51 +0100 Subject: [PATCH 3/3] Update version number --- package.json | 2 +- src/const.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1d533e86..cf4fb4ec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "compass-card", - "version": "2.0.0'", + "version": "2.0.1'", "description": "Lovelace compass-card", "keywords": [ "home-assistant", diff --git a/src/const.ts b/src/const.ts index cf273633..c7ddc025 100644 --- a/src/const.ts +++ b/src/const.ts @@ -1,6 +1,6 @@ import { localize } from './localize/localize'; -export const CARD_VERSION = '2.0.0'; +export const CARD_VERSION = '2.0.1'; export const ICONS = { compass: 'mdi:compass', };