Skip to content

Commit

Permalink
Merge branch 'release/3.1.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
shannonhochkins committed Feb 23, 2024
2 parents e1ba27b + fb8f0ab commit 6fd85ac
Show file tree
Hide file tree
Showing 21 changed files with 1,392 additions and 702 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@

# 3.1.4
## @hakit/components
- NEW - FamilyCard - a card that allows multiple person entities to render in a single card, this will also allow the user to long press and show the location of the person. Huge thanks to @jensea for introducing this feature!
- The same "location / map" functionality is also available when long pressing a row in the EntitiesCard if the entity entered is a "person" entity.
- BUGFIX - types for GarbageCollectionCard subtypes were previously not exported, now exported under GarbageCollectionCardTypes
- BUGFIX - automatic titles in modal have been fixed to convert to title case as well as allowing an override in the "modalProps" attribute for all cards.

## @hakit/core
- updating provider to allow global style overrides for new cards (FamilyCard, PersonCard)

# 3.1.3
## @hakit/components
- No changes here - aligning semantic versions
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,9 @@ There's extensive [documentation](https://shannonhochkins.github.io/ha-component
### Home Assistant Addon
There's a [Home Assistant Addon](ADDON.md) available which will serve your dashboard to a new sidebar link in home assistant making it easier to access your custom dashboard.

### WIP - Next Release

- Theming - allow individual components to display different theme control, either by a hue shift or global change

### Supported Cards
- [NEW FamilyCard](https://shannonhochkins.github.io/ha-component-kit/?path=/docs/components-cards-familycard--docs)
- [AreaCard](https://shannonhochkins.github.io/ha-component-kit/?path=/docs/components-cards-areacard--docs)
- [ButtonCard](https://shannonhochkins.github.io/ha-component-kit/?path=/docs/components-cards-buttoncard--docs)
- [ClimateCard](https://shannonhochkins.github.io/ha-component-kit/?path=/docs/components-cards-climatecard--docs)
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions hass-connect-fake/mocks/createPerson.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { HassEntity } from "home-assistant-js-websocket";
import { createEntity } from "./createEntity";

const now = new Date();

const defaults = {
entity_id: "person.john_doe",
state: "home",
attributes: {
editable: true,
id: "",
latitude: 43.72279692728114,
longitude: 10.388657661382009,
gps_accuracy: 35,
source: "device_tracker.john_doe_iphone",
user_id: "",
device_trackers: ["device_tracker.john_doe_iphone"],
entity_picture: "",
friendly_name: "John",
icon: "mdi:account",
},
context: {
id: "",
parent_id: null,
user_id: null,
},
last_changed: now.toISOString(),
last_updated: now.toISOString(),
} satisfies HassEntity;

export const createPerson = (entity_id: string, overrides: Partial<HassEntity> = {}) => {
return createEntity(entity_id, defaults, overrides);
};
Loading

0 comments on commit 6fd85ac

Please sign in to comment.