Skip to content

Releases: home-assistant/HAKit

0.4.2

22 Apr 09:52
c7f34a4
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.4.1...0.4.2

0.4.1

18 Apr 12:55
8c708b0
Compare
Choose a tag to compare

What's Changed

  • Add "write" operation to HAConnection by @bgoncal in #55
  • Use StarScream branch which prevents multiple URLSession creation by @bgoncal in #57
  • Update changelof for 0.4.1 by @bgoncal in #58
  • Update podspec by @bgoncal in #59
  • Use starscream fork fix but pointing to version instead of branch by @bgoncal in #61
  • Reference version 4.0.4 since it is what Starscream kept in podspec by @bgoncal in #62

Full Changelog: 0.4...0.4.1

0.4

25 Mar 10:34
8d1361d
Compare
Choose a tag to compare
0.4

What's Changed

New Contributors

Full Changelog: 0.3...0.4

0.3

08 Jul 16:50
Compare
Choose a tag to compare
0.3
  • Added: Subscriptions will now retry (when their request shouldRetry) when the HA config changes or components are loaded.
  • Changed: HAConnectionInfo now has a throwing initializer. See HAConnectionInfo.CreationError for details.

0.2.2

02 May 01:31
Compare
Choose a tag to compare
  • Added: Allow overriding User-Agent header in connection via HAConnectionInfo.
  • Fixed: Host header now properly excludes port so we match URLSession behavior.
  • Fixed: Services now load successfully for versions of HA Core prior to 2021.3 when name was added.

0.2.1

06 Apr 04:05
Compare
Choose a tag to compare
  • Changed: HAGlobal's log block now contains a log level, either info or error.
  • Fixed: Failed populate requests no longer crash when a later subscription is updated.
  • Fixed: The error log from a failed HACache<T> populate now contains more information.
  • Fixed: Dates from HA which lack milliseconds no longer fail to parse.

0.2.0

05 Apr 04:26
Compare
Choose a tag to compare
  • Added: HACache<T> which can send requests and subscribe to events to keep its value up-to-date.
  • Added HACachesContainer accessible as connection.caches which contains built-in caches.
  • Added: connection.caches.states which contains and keeps up-to-date all entity states.
  • Added: connection.caches.user which contains the current user.
  • Added: Optional PromiseKit target/subspec.
  • Added: Optional HAMockConnection target/subspec for use in test cases.
  • Added: connectAutomatically parameter to connection creation. This will call connect() when requests are sent if not connected.
  • Added: .getServices() typed request.
  • Added: .getStates() typed request.
  • Changed: Swapped to using the custom (not URLSession) engine in Starscream to try and figure out if URLSession is causing connectivity issues.
  • Changed: attributes and context on HAEntity are now represented by parsed types.
  • Changed: Many internal cases of JSON parsing and decoding are now done off the main thread.
  • Changed: Events to unknown subscriptions (that is, a logic error in the library somewhere) no longer unsubscribe as this was sending erroneously during reconnects.
  • Fixed: Calling connect() when already connected no longer disconnects and reconnects.
  • Fixed: Calling cancel() on a subscription more than once or on a non-retried subscription sends multiple unsubscribe requests.
  • Fixed: Disconnections silently occurred due to e.g. suspension; pings are now sent regularly to make sure the connection really is active.

0.1.0

06 Mar 04:51
Compare
Choose a tag to compare

Initial release. Still under heavy development.