Git Product home page Git Product logo

Comments (10)

wolgast avatar wolgast commented on June 13, 2024 1

Hey,

Have the same problem, the problem seems to be when the setting "display_mode: full" is used, if you remove it, the card will work. The features from "display_mode: full" are nice though...

from transmission-card.

amaximus avatar amaximus commented on June 13, 2024

Try to clear your browser cache and reload the UI.
Try to see in the browser's Developer Tools->Console if there are any errors related to this card.

from transmission-card.

migor7 avatar migor7 commented on June 13, 2024

I tried different browsers on different OS. Console is empty

from transmission-card.

amaximus avatar amaximus commented on June 13, 2024

Please make sure you have the sensors sensor.transmission_* under Developer Tools -> States.

I just tried it in my test env and it works as expected:
transmission

You may post your transmission card configuration.

from transmission-card.

migor7 avatar migor7 commented on June 13, 2024

torr1
torr2

If I go to the integrations menu, the card is shown correctly until I refresh the page. Everything was working fine until I updated to 2023.3...
torr3

from transmission-card.

migor7 avatar migor7 commented on June 13, 2024

Hey,

Have the same problem, the problem seems to be when the setting "display_mode: full" is used, if you remove it, the card will work. The features from "display_mode: full" are nice though...
Yes, I can confirm. If remove full mode, then it works correctly

from transmission-card.

amaximus avatar amaximus commented on June 13, 2024

@royto , do you know why the Transmission card's line 104
(https://github.com/amaximus/transmission-card/blob/main/transmission-card.js#L104) in full mode throws the following error?

transmission-card.js:104 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'state')
    at TransmissionCard._getConfigEntry (transmission-card.js:104:65)
    at TransmissionCard.renderTorrentButton (transmission-card.js:239:15)
    at TransmissionCard.renderTorrentFull (transmission-card.js:233:14)
    at transmission-card.js:160:50
    at Array.map (<anonymous>)
    at TransmissionCard.render (transmission-card.js:160:30)
    at TransmissionCard.update (lit-element.ts:160:24)
    at TransmissionCard.performUpdate (reactive-element.ts:1331:14)
    at TransmissionCard.scheduleUpdate (reactive-element.ts:1263:17)
    at TransmissionCard._$Ej (reactive-element.ts:1235:25)

from transmission-card.

royto avatar royto commented on June 13, 2024

Hi, seems that _entityRegistryDisplayhas been renamed to _entityRegistryDisplay
switching to

const entityRegistry = this.hass.connection._entityRegistryDisplay.state.entities.find( x => x.ei = 'sensor.transmission_status' && x.pl === 'transmission')
    if (entityRegistry) {
      return entityRegistry.di;
    }

resolve the issue of displaying the card but start stop torrent seems to not work anymore ....

I'll take a look later to try to fix this

from transmission-card.

royto avatar royto commented on June 13, 2024

I think I found a way to fix this. I'll create a PR soon

from transmission-card.

amaximus avatar amaximus commented on June 13, 2024

Thanks.

from transmission-card.

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.