iobroker-community-adapters / ioBroker.tankerkoenig

Spritpreis Adapter für ioBroker
http://www.iobroker.net
MIT License
31 stars 13 forks source link

[Bug]: post code starting with 0 shown wrong #113

Closed KLIS-IT closed 1 year ago

KLIS-IT commented 1 year ago

Is there an existing issue for this?

Current Behavior

In case of station information has a post code starting with 0 it is not shown in station information and data point postCode image

What did you expect to happen?

post codes starting with 0 are shown correct (as string not number)

How to reproduce it (minimal and precise)

add new station with post code starting with 0

Adapter version

3.3.3

Environment

- Node: v16.15.1
- npm: 8.11.0
- JS-Controller: 4.0.24
- Operating system: Raspbian GNU/Linux 10 (buster)

What browsers are you seeing the problem on?

Chrome

Screenshots & Log

image

xXBJXx commented 1 year ago

The data comes from the server without a preceding 0. image the input field is currently set to the type number there is a number with a 0 in front of it not possible I will change the whole thing to string. Then you can enter the number with a 0 by hand.

xXBJXx commented 1 year ago

should be fixed in version 3.3.5, please note the Migration to 3.3.5

with this version it will be checked if it is a postal code with only 4 digits, if yes a 0 will be put in front of it automatically

KLIS-IT commented 1 year ago

Thanks a lot - is working fine with version 3.3.5