-
|
Hi there, I just came from WUD and I really love Drydock so far. With WUD I used wud-card in Home Assistant to trigger and check updates (https://github.com/angryvoegi/wud-card). However I'm unable to set it up using Drydock, as it cannot reach the server. I have enabled server_cors , origin and methods. Are there any changes with regard to WUD that would clarify why this would not work? And what changes would I have to make to make this card work with Drydock? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
It won't work as-is, and it's not your setup. Two separate things are going on: The real blocker is response shape. In v1.4.0 drydock standardized its collection endpoints to return CORS is worth double checking anyway. What we're doing about it: v1.6.0 ships an opt-in compatibility flag, If you want it working today, you can patch the card locally, it's a couple of lines in |
Beta Was this translation helpful? Give feedback.
It won't work as-is, and it's not your setup. Two separate things are going on:
The real blocker is response shape. In v1.4.0 drydock standardized its collection endpoints to return
{ "data": [...], "total": ... }instead of WUD's bare arrays. wud-card was written against WUD's shape, so it calls.forEach()on our response object, that throws, and the card's own error handler reports it as "cannot reach the server". The red dot is misleading: your server is reachable (your browser test proves that), the card just can't parse what it gets back.CORS is worth double checking anyway.
DD_SERVER_CORS_ORIGINhas to be the exact origin your Home Assistant frontend is served from (e.g.http://hom…