Digital-Alchemy-TS / hass

Typescript APIs for Home Assistant. Includes rest & websocket bindings
https://docs.digital-alchemy.app
MIT License
5 stars 2 forks source link

byUniqueId #27

Closed zoe-codez closed 3 months ago

zoe-codez commented 3 months ago

Changes

Added method hass.entity.byUniqueId. This will take in the unique id of an entity, and return back an entity reference.

Checklist

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 55.55556% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 69.72%. Comparing base (fd3a722) to head (73e0de5).

:exclamation: Current head 73e0de5 differs from pull request most recent head f45f784

Please upload reports for the commit f45f784 to get more accurate results.

Files Patch % Lines
src/extensions/entity.extension.ts 57.14% 3 Missing :warning:
...rc/mock_assistant/extensions/fixtures.extension.ts 50.00% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #27 +/- ## ========================================== - Coverage 69.82% 69.72% -0.10% ========================================== Files 34 34 Lines 1286 1295 +9 Branches 159 161 +2 ========================================== + Hits 898 903 +5 - Misses 371 374 +3 - Partials 17 18 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.