Comments (9)
the mian difference i can see, is that at the bottom of the old types, there was a large export list re-exporting every type, the only thing i can think of is that for some reason your IDE isnt picking uop the types because of this, but i dont think so...
from ha-component-kit.
I do test thoroughly before I deploy, sometimes it's easy to miss things, when you create an issue can you please be a bit more detailed? What does your tsconfig look like? Does your generated type file have everything inside it? Have you tried restarting the ts server? Restarting vscode?
from ha-component-kit.
I have setup types correctly for lights / climates, but that's it currently - in the home assistant gihub repository, they have custom types for each entity type by domain, eg here: https://github.com/home-assistant/frontend/blob/155e9d9e95a85a3bb555f238fadd2c00ca7d3d69/src/data/alarm_control_panel.ts#L27
I have looked at potentially scraping and pulling theese from the github repository, however haven't found a nice solution for this yet as they're not named consistently, but i will do some further digging
from ha-component-kit.
Okay then, if it works all well for you. If someone has the same issue, I found a workaround – copying the generated entity names into the index.d.ts file in linked local @hakit/core
Works good enough, I won't burden you with that then as we have different IDEs, and debugging types linking being now in new (better, but somehow not liked by JetBrains IDE) format you upgraded to is pain
from ha-component-kit.
It still may help to see your setup yo enderatand what night be causing you to have issues mate!
from ha-component-kit.
sure, you can see my setup here https://github.com/yep-dev/ha-react-dashboard
so again, the only change I was doing was changing the @hakit/core version and installing it back and forth that caused it to lose those completions, but that could be because my setup or IDE can't accommodate the changes
from ha-component-kit.
I will check this out a little later and see if I can spot anything!
from ha-component-kit.
you mentioned:
format you upgraded to is pain
Why is it a pain?
I setup a completely new fresh test and it's all working with intellisense, I don't believe there's anything wrong with the types, I also checked out your repo and ran the type sync and intellisense and type validation is working fine so I'd say it is something to do with your IDE, bit hard to replicate unfortunately
from ha-component-kit.
debugging types linking being now in new (better, but somehow not liked by JetBrains IDE) format you upgraded to is pain
I meant that debugging [stuff not liked by my IDE] (that just happens to be the new format) is pain
from ha-component-kit.
Related Issues (20)
- useEntity not working for light entities that are turned off HOT 6
- Full example code similar to Demo dashboard HOT 2
- useAreas not reporting moved entities correctly HOT 15
- Docs and npm create are bonked HOT 3
- DevContainer HOT 6
- Adding order number for AreaCards in SidebarCard HOT 2
- Area Summary Card HOT 2
- License status HOT 2
- Allow numeric value for media_content_id HOT 2
- Entity icon only updates when refreshing the page HOT 5
- TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" HOT 17
- Problem using the dashboard in companion app HOT 28
- Modal - Animation Control HOT 1
- Discord link is expired HOT 1
- Vacuum Card - New card to control Vacuum entities HOT 1
- Prevent sidebar/group collapsing HOT 5
- POC - Swap store to signals HOT 1
- Multi lingal HOT 1
- Option to disable animations HOT 5
- Authorization request after each page refresh HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ha-component-kit.