摘要: 我们已经知道User 等保存是直接以json的形式直接保存到文件中。 先说结论:设备的检测历史默认保存在sqlite中 The default, and recommended, database engine is SQLite which does not require any configu 阅读全文
posted @ 2024-02-21 16:51 xunhanliu 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 程序中搜索User, 很容易命中homeassistant/auth/models.py 程序中大量使用了attr.s 进行模型的声明。上篇说过dataclass,以及BaseModel , 区别见: https://www.modb.pro/db/412679 文件中定义了5个模型,这里只需要猜测 阅读全文
posted @ 2024-02-21 16:27 xunhanliu 阅读(144) 评论(0) 推荐(0) 编辑
摘要: core 源码地址 : https://github.com/home-assistant/core/tree/master core 与其他container等版本区别见: https://www.home-assistant.io/installation/ 入口: homeassisstant 阅读全文
posted @ 2024-02-21 15:22 xunhanliu 阅读(77) 评论(0) 推荐(0) 编辑