royto / logbook-card

Logbook card for Home Assistant UI Lovelace
GNU General Public License v3.0
204 stars 9 forks source link

States map is not working properly #83

Closed cziter15 closed 1 year ago

cziter15 commented 1 year ago

Describe the bug After update to 2.0.0 it seems that icon states map is not working properly.

To Reproduce Steps to reproduce the behavior:

  1. Use states_map and modify icon and icon color
  2. Notice that states map not working

Expected behavior Working as ealier, priror to 2.0.0

Screenshots 2.0.0 image 1.13.0 image

Environment (please complete the following information):

Card configuration

entity: sensor.pelletmon_pcb_sensor_burner_status_name
title: ''
max_items: 5
type: custom:logbook-card
state_map:
  - icon: mdi:alert-remove
    value: unavailable
    icon_color: '#822'
  - icon: mdi:fire-off
    value: off
    icon_color: '#aaa'
show:
  separator: true
  end_date: true
  start_date: true
  icon: true
desc: true
no_event: '-'
custom_logs: false
royto commented 1 year ago

Thanks for the report

Fixed in 2.0.1

cziter15 commented 1 year ago

Confirmed, working as expected. Thanks!