fixed ha to handle declare_dead_teim
Merge pull request #45 from sholland/ha_fix

fixed ha to handle declare_dead_time