Skip to content

Commit

Permalink
fix(hass): double expire rate
Browse files Browse the repository at this point in the history
  • Loading branch information
maxjoehnk committed Feb 8, 2021
1 parent 3fbdb50 commit bbb61d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/home_assistant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl Module for HomeAssistantModule {
hass_config.name.clone(),
);
let backlight = config.backlight;
let expire_after = config.idle_poll_rate;
let expire_after = config.idle_poll_rate * 2;
async move {
self.announce_occupancy(&hass_config, topic.clone(), device.clone(), expire_after)?;
if backlight != BacklightProvider::None {
Expand Down

0 comments on commit bbb61d7

Please sign in to comment.