Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type safe entity ref tests #58

Open
zoe-codez opened this issue Aug 5, 2024 · 2 comments
Open

type safe entity ref tests #58

zoe-codez opened this issue Aug 5, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@zoe-codez
Copy link
Member

Bug description

const houseCO2Sensors = hass.refBy.label('house_co2_sensors')
        const sensor = hass.refBy.id('some_house_sensor')

        if (houseCO2Sensors.includes(sensor)) {
Argument of type 'ByIdProxy<TRawEntityIds>' is not assignable to parameter of type 'ByIdProxy<"sensor...

This test should be valid, does but types aren't transferring around as expected

@zoe-codez zoe-codez added the bug Something isn't working label Aug 5, 2024
@zoe-codez
Copy link
Member Author

@chrisdrackett

@chrisdrackett
Copy link
Contributor

thanks, was just about to add this :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants