hass-miner
hass-miner copied to clipboard
if mining is power is inactive then value 0 th/s instead of unknown or unavailable
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like A clear and concise description of what you want to happen.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context Add any other context or screenshots about the feature request here.
No description here, but I assume you want the miner to show 0TH/s when mining is disabled?
If so, I'm not opposed to it, I could add that to the hashrate calculation in pyasic, so that if is_mining
is false, and hashrate
is None, it could return 0. This also makes sense from an application perspective, generally I would expect this behaviour rather than None. I'll take a look into it next week when I get back home.