Add notification binary_sensor to Plugwise integration#41473
Add notification binary_sensor to Plugwise integration#41473ctalkington merged 27 commits intohome-assistant:devfrom
Conversation
9c03e92 to
1681255
Compare
|
Catching up with dev and as per failing 48f6987 and 00ecb01 ( Code should now appropriately run tests on the patch (i.e. delete a notification and find one present from fixtures). |
|
Should be fine for final review and eventual merge |
7a962f5 to
a0cc9d1
Compare
|
Catchup with dev - still waiting eagerly for review. (Our backlog of changes is building waiting for these PRs to be merged, among them the requested integration closing #35713). |
…luding notifications
a0cc9d1 to
dc3ca29
Compare
|
@ctalkington anything else we should do to it or just waiting for after beta-cutoff? (no rush, just checking, so we can shift our focus to further drafting #43036 and working on the USB-one in advance) |
|
@CoMPaTech just havent had as much time lately, ill try to wrap up review tonight or this weekend at latest |
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
| if msg_type not in SEVERITIES: | ||
| msg_type = "other" | ||
|
|
||
| self._attributes[f"{msg_type.lower()}_msg"] = msg |
There was a problem hiding this comment.
is it possible for there to be more than one of a type at a time? this logic seems like it would overwrite and just show last msg of each type.
There was a problem hiding this comment.
I don't think it gives more than one (and/or of each) - @bouwew can you check?
There was a problem hiding this comment.
@ctalkington discussed offline and we've decided to ensure it wouldn't override, fb8a18f incorporates this
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
ctalkington
left a comment
There was a problem hiding this comment.
thanks for the followup during review!
* 'dev' of https://github.com/home-assistant/core: (77 commits) Fix kodi media_player unavailable at start (home-assistant#41714) Add an option to template delay_on/off in template binary sensor (home-assistant#43259) Bump hatasmota to 0.0.31 (home-assistant#43319) Update cloud integration to 0.38.0 (home-assistant#43314) Add progress translation key to hassfest (home-assistant#43311) Bump codecov/codecov-action from v1.0.14 to v1.0.15 (home-assistant#43304) Improvement to allow parsing of station ID in vasttrafik integration. Addresses home-assistant#34851 (home-assistant#43136) Abort vizio discovery flow without unique ID (home-assistant#43303) Update directv to 0.4.0 (home-assistant#43302) Add notification binary_sensor to Plugwise integration (home-assistant#41473) [ci skip] Translation update Bump bimmer_connected to 0.7.13 (home-assistant#43294) Bump aioguardian to 1.0.4 (home-assistant#43299) Refactor how entities are created for homekit_controller services (home-assistant#43242) Updated frontend to 20201111.1 (home-assistant#43298) Update pytradfri to 7.0.4 (home-assistant#43297) Remove pts adjustments in stream (home-assistant#42399) Fix Enigma2 available entity property (home-assistant#43292) Make MQTT climate return PRESET_NONE when no preset is set (home-assistant#43257) Bump env_canada to 0.2.4, fix config validation (home-assistant#43251) ...
|
? |
Proposed change
Adding notifications (warnings/errors) from the Plugwise Smile to Home Assistant.
Both as notification for the persistent notifications handling and as
binary_sensorto indicate notification present.Type of change
Additional information
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.To help with the load of incoming pull requests: