Skip to content

Rewrite of codebase

Pre-release
Pre-release
Compare
Choose a tag to compare
@DigiLive DigiLive released this 24 Jun 06:37
· 77 commits to main since this release
d506630

What's Changed

The code is completely rewritten from procedural style to object orientated style by @DigiLive.
Code that has been reused, is refactored and optimized.
Also, this release contains some fixes and new features.

Installation with HACS

See this HACS guide.

Breaking changes

Warning!
This release is not compatible with the dashboard configuration of previous releases.
You should update your configuration as follows:

Areas

  • Remove the dash (-) in front of any options > areas > name property.
  • Add a line above this name property with the id of the area, followed by a colon (:).
  • Make sure you have correct indentation.
# From
options:
  areas:
    - name: Family Room
    ...
  ...

# To
options:
  areas:
    family_room_id:
      name: Family Room
      ...
    ...

Views

  • Rename the domain from plural to singular noun (lights > light, switches > switch, etc).
  • Remove the boolean value after the colon(:).
  • Add properties on the lines below.
# From
options:
  views:
    lights: true
    switches: true
    ...

# To
options:
  views:
    light:
      order: 0
      title: Illimination
      ...
    switch:
      order: 1
      hidden: true
      icon: mdi:toggle-switch
      ...
    ...

Fixes

  • Fix several errors in the readme.
  • Fix getCountTemplate method.
    The method only counted states which aren't equal to value off.
  • Fix overriding sensor card configuration.
    Having an entity_config property in the strategy options resulted in overriding each sensor card.
    Only the cards listed under this property should be overridden.
  • Cut redundant variables and constants.
  • Fix undefined sensorState.

New Features

  • Undisclosed Area.
  • Ordering of area cards.
  • Sorting of entities by original_name.
  • Sorting of areas by order and name.
  • Sorting of domains by order and title.
  • Overriding properties of views.
  • Overriding properties of domains.
  • Overriding properties of areas.
  • Hide, views, domains, areas and entities.

Please consult the readme for how to configure the strategy.

Known Issues

  • Title cards or chips won't switch entities assigned to the undisclosed area (#26).

Full Changelog: 0.15...1.0.0-alpha.1