HelloThisIsFlo / Appdaemon-Test-Framework

Clean, human-readable tests for Appdaemon
https://hellothisisflo.github.io/Appdaemon-Test-Framework/
MIT License
45 stars 19 forks source link

[fix] "all" attribute argument in get_state #30

Closed jshridha closed 4 years ago

jshridha commented 4 years ago

Currently, the passing "all" to get_state in order to get all attributes does not return a dict like is returned with Appdaemon. This PR fixes that and also adds in the last_updated and last_changed attributes that are included by default.

I've been running with this in production for several months and it's been working for me.

HelloThisIsFlo commented 4 years ago

Good catch and Good work 👍😃 Thank you!

I added a comment to the code 🙂

HelloThisIsFlo commented 4 years ago

I'm closing this one since it's been migrated to #43