'converting dsolve output to solve it for a value in sympy

I have

import sympy as sm

x = sm.symbols('x', cls=sm.Function)
t = sm.symbols('t')
expr = x(t).diff(t) + 0.05*x(t)
sol = sm.dsolve(expr,x(t), ics = {x(0):25})

Now i have the solution as an relational equality. Now i want to solve t for x = 1. I can't do s = sm.Eq(x,-1) to do sm.solve(s,t) as s returns False



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source