Giter VIP home page Giter VIP logo

Comments (8)

NickWaterton avatar NickWaterton commented on September 26, 2024 1

Ok,

I found the issue. In the original binding, the duplicate key simply overwrote the first key. In the new version I am using a stream to generate the Map, which throws the "duplicate key" exception.

Fortunately the toMap() function has a method for dealing with duplicate keys (which I had not implemented), so it's an easy fix.

from openhab-addons.

jlaur avatar jlaur commented on September 26, 2024

@NickWaterton - FYI, it seems I'm experiencing a regression here when trying to switch source on a legacy TV.

from openhab-addons.

NickWaterton avatar NickWaterton commented on September 26, 2024

It looks like you may have two inputs on the TV both called HDMI-CEC. Can you list the inputs on your TV (on the screen), take a picture and post it here?

The binding queries the source list, and ID's and fills a variable Map<String, String> - and it looks like you have a duplicate source name. This is the same as the old binding though, so not sure what is different.

Thanks,

from openhab-addons.

jlaur avatar jlaur commented on September 26, 2024

It looks like you may have two inputs on the TV both called HDMI-CEC. Can you list the inputs on your TV (on the screen), take a picture and post it here?

Yes, indeed, you are right:

image

from openhab-addons.

NickWaterton avatar NickWaterton commented on September 26, 2024

Fortunately I have one of these legacy TV's as well, with one HDMI-CEC device. I will have to think about how to deal with this situation.

from openhab-addons.

NickWaterton avatar NickWaterton commented on September 26, 2024

@jlaur

Can you try this jar if it fixes the issue, I'll issue a PR.

Thanks.

from openhab-addons.

jlaur avatar jlaur commented on September 26, 2024

Can you try this jar if it fixes the issue, I'll issue a PR.

Sure, thanks! Perhaps you can already create the PR and add label "additional testing preferred"? I can then backport the fix and test it on my production system in the evening - and perform a review as well?

from openhab-addons.

NickWaterton avatar NickWaterton commented on September 26, 2024

Can you try this jar if it fixes the issue, I'll issue a PR.

Sure, thanks! Perhaps you can already create the PR and add label "additional testing preferred"? I can then backport the fix and test it on my production system in the evening - and perform a review as well?

PR #16787 created, I don't seem to be able to add labels though.

from openhab-addons.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.