hass-miner icon indicating copy to clipboard operation
hass-miner copied to clipboard

if mining is power is inactive then value 0 th/s instead of unknown or unavailable

Open mahines2290 opened this issue 11 months ago • 1 comments

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.

mahines2290 avatar Mar 24 '24 23:03 mahines2290

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.

b-rowan avatar Mar 26 '24 02:03 b-rowan